GithubHelp home page GithubHelp logo

ecommerce-project's Introduction

Ecommerce-Project

This is an Ecommerce project still development in progress, it has all the basic functionalites of an ecommerce website. At present backend of this project is completed and the front-end is in progress.

Built With

  • NodeJS
  • Express
  • MongoDB
  • React
  • Redux
  • HTML
  • CSS

Features

  • Users are classifed into two roles User and Admin
  • admin can add new products and its details
  • user can register by providing email and password
  • user while registering themselves they can add their avatar as profile picture
  • user can reset their password
  • user can view their profile
  • user can update their profile
  • user can view all the products with or without login
  • user can search the products
  • user can filter the products based on category, price or ratings
  • user can rate and review the product
  • user can delete their review on a product
  • user can add the product to the cart
  • user can order the product
  • user can delete the order shipment of product
  • user can view the details of order shipment
  • admin can update or delete the details of order shipment
  • admin can get the details of all or a specific user
  • home page has paginitaion built into it
  • proper Error handling and iput validation
  • Custom user authentication using JSON Web Tokens.
  • proper authorization of roles of all the functionality
  • Bootstrap responsive
  • and many more functionalities

Install dependencies

Backend dependencies

$ cd Ecommerce-Project
$ npm install

frontend dependencies

$ cd Ecommerce-Project/frontend
$ npm intall

Seed Database

Use the following commeand to put some dummy products in that database. Run it in the root folder.

$ npm seeder

Run this project in Local Machine

Replace all the process.env variables with appropriate values
Run backend in production mode

$ cd Ecommerce-Project
$ npm run prod

Run frontend

$ cd Ecommerce-Project/frontend
$ npm start

All backend routes

PRODUCT Routes

  • /api/product/:id GET PUT DELETE
  • /api/products GET (conatins query)
  • /api/admin/new POST
  • /api/review PUT
  • /api/reviews?id= GET
  • /api/reviews?productId=&id= DELETE

USER Routes

  • /api/login POST
  • /api/logout GET
  • /api/me GET
  • /api/register POST
  • /api/password/reset/:token PUT
  • /api/password/forgot POST
  • /api/profile GET
  • /api/password/updatePassword PUT
  • /api/profile/updateProfile PUT
  • /api/admin/users GET
  • /api/admin/users/:id GET
  • /api/admin/users/:id DELETE
  • /api/admin/users/:id PUT

ORDER Routes

  • /api/order/new POST
  • /api/order/:id GET
  • /api/orders/myOrders GET
  • /api/admin/allOrders GET
  • /api/admin/order/:id PUT
  • /api/admin/order/:id DELETE

ecommerce-project's People

Contributors

abhisheksinghnaruka avatar

Watchers

 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.