Skip to content

A backend developed using NodeJs, MongooseJs, ExpressJs.

Notifications You must be signed in to change notification settings

khairnarsaurabh23/eShop

Repository files navigation

eShop

A backend project built using Node.js

This is E-com web Store project. This project has all basic functionalities like login, logout, forgot/reset password, order a product, make payment using gateways etc. The project uses Jsw web tokens for login releted functionalities.

Tools

  • Testing : Postman 9.4.1

Routes:

Home

It's a un-protected route means anybody can visit it.

localhost:4000/api/v1/

User Routes

  1. Un-protected routes

localhost:4000/api/v1/signup
localhost:4000/api/v1/login
localhost:4000/api/v1/logout
localhost:4000/api/v1/forgotpassword
localhost:4000/api/v1/password/reset/:token

  1. Protected routes only to logged in users

localhost:4000/api/v1/dashboard
localhost:4000/api/v1/user/changepassword
localhost:4000/api/v1/user/update

  1. Admin specific routes
  • These routes are protected by userRole middleware

localhost:4000/api/v1/admin/users
localhost:4000/api/v1/user/:id
Last admin route has Get, Put, Delete Http methods associated with it. So depending on request it'll perform its specific action.

Product Routes

  1. Review Routes

localhost:4000/api/v1/review

  • This Route has Post(add review) and Delete(delete review) methods associated with it. Hence depending upon Http request it'll perform its action.
  1. Admin Specific Routes

localhost:4000/api/v1/admin/addproduct
localhost:4000/api/v1/admin/update/:id

  • Last admin route has Http Put and Delete methods associated with it.

Payment routes

  1. Get routes

localhost:4000/api/v1/stripekey
localhost:4000/api/v1/razorpaykey

  • These routes will get the public key to proceed with payment.
  1. Make payment route

localhost:4000/api/v1/payment/stripe
localhost:4000/api/v1/payment/rezorpay

  • The route to make a payment using gateway

Order routes

localhost:4000/api/v1/order
localhost:4000/api/v1/user/order
localhost:4000/api/v1/:id

  • Second route will get all orders of current user.
  • Last route well get a specific order using its id.

Full Documentation about routes Here

About

A backend developed using NodeJs, MongooseJs, ExpressJs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published