Made with Razorpay integration and ReactJS as frontend
-
Clone the repository:
git clone git@github.com:Samya-S/paymentGateway.git
Make sure you have SSH keys setup in your machine
-
Navigate to the project directory:
cd paymentGateway
-
Install dependencies:
In the frontend directory
cd frontend npm i
In the backend directory
cd backend npm i
Make sure to have nodejs and npm installed
-
In the frontend directory:
REACT_APP_RZPAY_KEY_ID = '<your razorpay api key id>' REACT_APP_BACKEND_HOSTING_DOMAIN = '<your backend hosting domain>'
-
In the backend directory:
RZPAY_KEY_ID = '<your razorpay api key id>' RZPAY_KEY_SECRET = '<your razorpay api key secret>'
-
Navigate to the frontend directory:
cd frontend
-
Use the following command to run:
npm start
-
Navigate to the backend directory:
cd backend
-
Use the following command to run:
nodemon index.js
or alternatively
npm start