Coder Social home page Coder Social logo

ecommerce-boilerplate's Introduction

Ecommerce (React) Coding Assessment

Overview

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.

What to do?

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)

How should the application work?

The user of this react application should be able to view all the products. The application should have the following workflow,

  1. Create the login/register functionality.
  2. Once the user is authenticated
  3. Users can add the products to the cart page
  4. Also user can add their favourite products

Development Setup

  • Clone this repo
  • npm install - To install the dependencies
  • npm run server - To start the JSON server
  • npm start - To start the react app

This project's user interface should like this.

Login/Register page

Screenshot 2022-07-24 at 10 44 13 AM

Home page

Screenshot 2022-07-24 at 10 45 58 AM

Product detail page

Screenshot 2022-07-24 at 10 53 17 AM

Cart page

Screenshot 2022-07-24 at 10 50 18 AM

Screenshot 2022-07-24 at 10 51 16 AM

API Usage

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

More info about API usage can be found at the Postman Collection

Bonus

  • Feel free to add functionality (not mandatory)
  • Use redux/context for state management
  • Well explained readme (screenshot etc)

ecommerce-boilerplate's People

Contributors

gurukishore111 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.