Skip to content

This project includes code for backend of an E-commerce developed in line with cutting-edge commercial requirement.

License

Notifications You must be signed in to change notification settings

i-dipanshu/ecommerce-backend

Repository files navigation

E-commerce Application Server in Node.js

  • This web server is build for an E-commerce in Node.js.
  • It uses express framework for Node.js and mongoose for mongodb.
  • It's frontend is under development which uses Redux for state management and React for frontend.

Project Background

  • The E-commerce sector is one of the fastest growing sectors in today's world.
  • This brings far greater challenge that a developer need to meet cutting-edge commercial requirement.
  • I build this project in order to test the limit of my skill in Web development.

Application Overview

  • Api calls are made by redux to node.js which then communicates with mongodb to do a specific task.

Key Features

REST Api's

  • Base Address = http://< hostname >:port/api/v1
  • Routes catagories
    • /- routes every body can access, however some routes can accessed only if you are logged in.
    • /admin - routes to resources that can only accessed by admin

Awaited Feature

  • Payment gateway for payments using RazorPay

  • Google and Apple Authorization using Passport.js

  • Realtime Customer Chat Service using socket.io

  • Implement servers for hosting images .

Contribution Guide

  • Clone the repository and run npm i.

  • Add a config.env file in config folder and paste the below fields in it and then fill up the your preferred data

WEBSITE_NAME = 

PORT = 

DB_URI = mongodb://<hostname>:27017/<db_name>

JWT_SECRET = 

JWT_EXPIRES = 

COOKIE_EXPIRE = 

SMTP_HOST = smtp.gmail.com

SMTP_PORT = 587

SMTP_SERVICE = gmail


SMTP_MAIL= 

SMTP_PASSWORD= 
  • To start a development server
npm run dev
  • Feel free to raise a issue

About

This project includes code for backend of an E-commerce developed in line with cutting-edge commercial requirement.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published