Project Create with the Stack MERN and RAZORPAY
Live Demo
.
Report Bug
·
Request Feature
A Personal Project with all the requirements to do a payment with RAZORPAY service.
- npm version 6.14.4 or more
- node version 10.19.0 or more
- clone the repository razorpay-demo
- cd in to the folder and run
npm install
- create the file
.env
in the root with the next Variables
* HTTPS=true
* USERNAME_MONGODB=`username`
* PASSWORD_MONGODB=`password`
* CLUSTER_MONGODB=`cluster-name`
* DATABASE_MONGODB=`database-name`
* REACT_APP_RAZORPAY_KEY_ID=`razorpay_key_id` from dashboard
* REACT_APP_RAZORPAY_KEY_SECRET=`razorpay_key_secret` from dashboard
- run
npm run build
to have all the files from the react-app. - run
npm start
- go to localhost:3001
-
Use Postman. (recommended)
-
(GET)
/api/orders/
-
(GET)
/api/payments/
npm start
: Start the app with node.js, express, mongodb with the result of the react built.npm react
: Start only the react app without the back-end.npm build
: Create the main files of the front-end.npm test
: Check the test files of the react app.npm server
: Similar of "npm start" running with nodemon.
- Manage Currencies