To complete this assessment, you will need to use this Ecommerce-boilerplate web app.
The purpose of this assessment is to assess your skills and approach to composing a simple web app given an API feed.
Your goal is to implement an eCommerce application. The CSS framework/library is totally up to you.
Although it's a very basic exercise, we will be looking for simple, well-designed, well-commented, and tested code in the submission.
Please include a README
with setup instructions and any other documentation you created as part of your solution.
Also, add very short info for the following to your README
:
- Describe all the application functionalities
- Are there any improvements you could make to your submission?
- What would you do differently if you were allocated more time?
Once you complete implementation, please add the link to the hosted repository (e.g. Github). Alternatively, you may submit your code as a ZIP file too.
(NOTE: You have to use the latest version of v18 and react-router-dom v6)
The user of this react application should be able to view all the products. The application should have the following workflow,
- Create the login/register functionality.
- Once the user is authenticated
- Users can add the products to the cart page
- Also user can add their favourite products
- Clone this repo
npm install
- To install the dependenciesnpm run server
- To start the JSON servernpm start
- To start the react app
API can be launched using npm run server.
Endpoint | Result |
---|---|
/users | Lists all available users |
/products | Lists all available products |
/orders | Lists all available orders |
/favourites | Lists all available favourites |
Refer - JSON sever docs for more information
- Feel free to add functionality (not mandatory)
- Use redux/context for state management
- Well explained readme (screenshot etc)