A Single Page Application that reflects the same user experience as that of a real-world e-commerce website utilizing the fakestoreapi.
Products Page: It displays the available products for the user to choose and add to their cart (in various quantities)
Product Page: It displays more information about any particular product for the user who can choose and add to their cart (in various quantities)
Shopping Cart Page: It includes the products that the user has added to their cart. A user can empty the cart, update the ordered products and proceed with the checkout
Checkout Form: Collects information about the user (first name, last name, email, phone and delivery address details).
Order Confirmation: It displays the outcome after the user completes the checkout process
Item amount “badge” next to the link for the shopping cart that indicates the number of the ordered items
Users can share the link of any page, with a different user. The link navigates the receiving user to the page with correct results displayed, preserving the state of the page
Responsive Design
Here’s a high level list of the technologies used for this app:
Angular CLI v13.0.44: Angular CLI for the development
Tailwind: A utility-first CSS framework to create a user friendly and eye appealing interface
Fontawesome: An icon library for the UI infographics
Fork and clone this repository
To install the dependencies of the app, run in this directory: npm install
or npm i
To start the app, run in the project directory: ng serve
or npm run start
Access the app locally at: http://localhost:4200/
The commands to check the code quality and test the api must be run in the project directory.
The preferred settings for the coding style of the app can be fount in the .prettierrc and .eslintrc files.
To check the code consistensy to the chosen coding style run npm run prettier:check
.
To apply the chosen coding style run npm run prettier
.
To lint the app run npm run lint
or ng lint
.
Run ng test
or npm run test
to execute the unit tests via Karma.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. The production build of the app is included in the dist/app
directory.
To run the app that is ready for production run: npm start