commit fix

Vic
Vic 2 years ago
parent 6fd6b6ba59
commit f27798c1a9

@ -1,27 +1,29 @@
# ShelfFront # Shelf_Front Project
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.3.7. An online storefront to showcase products. Users is able to browse an index of all products, see the specifics of a single product, and add products to an order that they can view in a cart page.
## Development server # Installation
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files. - Install packages dependencies: `npm install`
- Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
## Build ## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
## Running unit tests # Built with
- Typescript
- Angular 13.3.7
- Angular Material
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). # Screenshots
## Running end-to-end tests ![screenshot](src/assets/homepage.jpg)
![screenshot](src/assets/product_details.jpg)
![screenshot](src/assets/cart.jpg)
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
## Further help # Author
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page. Anis Benziane.

@ -3,11 +3,13 @@ import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './components/home/home.component'; import { HomeComponent } from './components/home/home.component';
import { ProductItemDetailsComponent } from './components/product-item-details/product-item-details.component'; import { ProductItemDetailsComponent } from './components/product-item-details/product-item-details.component';
import { CartComponent } from './components/cart/cart.component'; import { CartComponent } from './components/cart/cart.component';
import { ConfirmationComponent } from './components/confirmation/confirmation.component';
const routes: Routes = [ const routes: Routes = [
{ path: '', component: HomeComponent }, { path: '', component: HomeComponent },
{ path: 'product/:id', component: ProductItemDetailsComponent }, { path: 'product/:id', component: ProductItemDetailsComponent },
{ path: 'cart', component: CartComponent } { path: 'cart', component: CartComponent },
{ path: 'confirmation', component: ConfirmationComponent}
]; ];
@NgModule({ @NgModule({

@ -1,6 +1,7 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser'; import { BrowserModule } from '@angular/platform-browser';
import { HttpClientModule } from '@angular/common/http'; import { HttpClientModule } from '@angular/common/http';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AppRoutingModule } from './app-routing.module'; import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
@ -18,7 +19,10 @@ import { MatToolbarModule } from '@angular/material/toolbar';
import { MatIconModule } from '@angular/material/icon'; import { MatIconModule } from '@angular/material/icon';
import { MatCardModule } from '@angular/material/card'; import { MatCardModule } from '@angular/material/card';
import { MatSelectModule } from '@angular/material/select'; import { MatSelectModule } from '@angular/material/select';
import { MatBadgeModule } from '@angular/material/badge' import { MatBadgeModule } from '@angular/material/badge';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatInputModule } from '@angular/material/input';
import { ConfirmationComponent } from './components/confirmation/confirmation.component';
@ -31,13 +35,16 @@ import { MatBadgeModule } from '@angular/material/badge'
ProductListComponent, ProductListComponent,
NavbarComponent, NavbarComponent,
ProductItemDetailsComponent, ProductItemDetailsComponent,
CartComponent CartComponent,
ConfirmationComponent
], ],
imports: [ imports: [
BrowserModule, BrowserModule,
AppRoutingModule, AppRoutingModule,
BrowserAnimationsModule, BrowserAnimationsModule,
HttpClientModule, HttpClientModule,
FormsModule,
ReactiveFormsModule,
MatCommonModule, MatCommonModule,
MatToolbarModule, MatToolbarModule,
@ -45,7 +52,9 @@ import { MatBadgeModule } from '@angular/material/badge'
MatButtonModule, MatButtonModule,
MatCardModule, MatCardModule,
MatSelectModule, MatSelectModule,
MatBadgeModule MatBadgeModule,
MatFormFieldModule,
MatInputModule
], ],
providers: [], providers: [],
bootstrap: [AppComponent] bootstrap: [AppComponent]

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Loading…
Cancel
Save