https://github.com/samya-s/paymentgateway
Payment Gateway made with Razorpay integration with ReactJS as frontend and Express.js in node.js env as backend
https://github.com/samya-s/paymentgateway
payment payment-gateway razorpay razorpay-api razorpay-payment
Last synced: about 1 year ago
JSON representation
Payment Gateway made with Razorpay integration with ReactJS as frontend and Express.js in node.js env as backend
- Host: GitHub
- URL: https://github.com/samya-s/paymentgateway
- Owner: Samya-S
- License: unlicense
- Created: 2024-03-23T19:45:46.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-24T18:19:37.000Z (about 2 years ago)
- Last Synced: 2025-02-03T11:33:25.092Z (over 1 year ago)
- Topics: payment, payment-gateway, razorpay, razorpay-api, razorpay-payment
- Language: JavaScript
- Homepage:
- Size: 561 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Payment Gateway
Made with Razorpay integration and ReactJS as frontend
## Table of Contents
- [Installation](#installation)
- [Defining env variables](#defining-environment-variables)
- [Run dev environment](#run-dev-environment)
## Installation
1. Clone the repository:
```bash
git clone git@github.com:Samya-S/paymentGateway.git
```
`Make sure you have SSH keys setup in your machine`
2. Navigate to the project directory:
```bash
cd paymentGateway
```
3. Install dependencies:
In the frontend directory
```bash
cd frontend
npm i
```
In the backend directory
```bash
cd backend
npm i
```
`Make sure to have nodejs and npm installed`
## Defining environment variables
1. In the frontend directory:
```bash
REACT_APP_RZPAY_KEY_ID = ''
REACT_APP_BACKEND_HOSTING_DOMAIN = ''
```
1. In the backend directory:
```bash
RZPAY_KEY_ID = ''
RZPAY_KEY_SECRET = ''
```
## Run dev environment
### To run the frontend:
1. Navigate to the frontend directory:
```bash
cd frontend
```
2. Use the following command to run:
```bash
npm start
```
### To run the backend:
1. Navigate to the backend directory:
```bash
cd backend
```
2. Use the following command to run:
```bash
nodemon index.js
```
or alternatively
```bash
npm start
```