CryptoPay is a cryptocurrency payment gateway that allows you to accept cryptocurrency payments on your website. This guide will help you set up the project locally for development.
Before you begin, ensure you have the following installed on your machine:
- Node.js (v14 or higher)
- npm (comes with Node.js)
- MongoDB (for the database)
- Python (for the backend, if applicable)
Follow these steps to set up the project locally:
Clone the CryptoPay repository to your local machine:
git clone https://github.com/Pasonnn/crypto-payment-gateway.git
cd crypto-payment-gatewaycd backendInstall the required packages:
npm installCreate a .env file in the backend directory and add the following variables:
# Infura Ethereum Node API Key
INFURA_SEPOLIA_URL="https://sepolia.infura.io/v3/YOUR_INFURA_API_KEY"
# Flask Secret Key
SECRET_KEY="your_secure_random_key_here"
# Database Configuration (MongoDB)
DATABASE_URI="mongodb+srv://your_username:your_password@your_cluster.mongodb.net"
DATABASE_NAME="your_database_name"
# Admin Wallet Address
ADMIN_WALLET_ADDRESS="your_ethereum_wallet_address"Run the backend server:
npm startOpen a new terminal window and navigate to the frontend directory:
cd frontendInstall the required packages:
npm installCreate .env.development and .env.production files in the frontend directory:
.env.development:
REACT_APP_API_URL=http://localhost:5000
REACT_APP_WS_URL=ws://localhost:5000.env.production:
REACT_APP_API_URL=https://your-backend-domain.com
REACT_APP_WS_URL=wss://your-backend-domain.comRun the frontend server:
npm startOnce both the backend and frontend servers are running, you can access the application in your web browser at:
http://localhost:3000
If you would like to contribute to the project, please fork the repository and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
For any issues or questions, please reach out via GitHub Issues or email pason,[email protected].