Backend server for React eCommerce Web application and React Shop Admin Dashboard.
Created using Node.js and MongoDB. This server inlcudes Node.js CRUD operations, fetching with queries and MongoDB methods. Also to provide security, This server uses JSON Web Token and verify user and admin requests. Stripe is being used aas a payment method to recevie a payment from the client side.
This is one of three parts of full stack eCommerce app. You can find the React eCommerce Web application here and React Shop Admin Dashboard here
To run the application
- Clone this repo
- Run
npm install - Run
npm start
- Node.js
- Express.js
- MongoDB
- CryptoJS
- JSON Web Token
- Stripe
You must add your MongoDB url MONGO_URL in the index.js
You need to add passphrase PASS_SEC in src/auth.js . It's being used by CryptoJS AES algorithm to to envrypt/decrypt passwords.
Add the JWT secret JWT_SEC in src/auth.js and verifyToken.js
Add your Stripe secret key STRIPE_KEY in src/stripe.js
Backend deployed on Render
Database deployed on MongoDB Cloud Services
- Ali Darraji - https://github.com/adarraji