- This web server is build for an E-commerce in Node.js.
- It uses
express
framework for Node.js andmongoose
for mongodb. - It's frontend is under development which uses
Redux
for state management andReact
for frontend.
- 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.
- Api calls are made by redux to node.js which then communicates with mongodb to do a specific task.
- 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
-
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 .
-
Clone the repository and run
npm i
. -
Add a
config.env
file inconfig
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