This project is an ecommerce store frontend generated using Angular CLI 13.0.4 built as a Capstone project for Udacity's Full Stack JavaScript Developer Nanodegree Program. Uses tailwindcss for all styling.
git clone
the projectcd
into the project dir- Run
npm install
in the project dir - Run
ng build
to run
home
- home page embedsitem-list
to show all the productscart
- shows all the products that the user has added into their shopping cart, embedsitem
to show each product- item-detail - shows the details of the product that the user clicks on the homepage, embeds
item
to show the product - order-complete - success page when the user completes their order
- item-list
- item
- Product
- Order
- OrderItem
All data is shared throughout the application using the item
and cart
services.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
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
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
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.