This template helps you quickly set up and configure JamsrPay.
Before setting up JamsrPay, ensure you have the following:
- Node.js
- PostgreSQL database
pnpm install
# or
npm installSet up the database Ensure you have PostgreSQL running and create a new database "JamsrPay"
pnpm db:pushConfigure Environment Variables
Create a .env file in the project root and add the necessary values:
DATABASE_URL=postgresql://user:password@localhost:5432/JamsrPay
SECRET_KEY="your-secret-key"Create Webhook on JamsrPay https://sandbox.jamsrpay.com
Start the development server
pnpm devThe server should be running at http://localhost:3000
Ngrok Setup (For Local Webhook Testing)
If you need to test webhooks locally, install and run ngrok: https://ngrok.com/downloads/mac-os
Start ngrok to expose your local server:
ngrok http 3000Test Coin
https://nileex.io/join/getJoinPage
For any issues, visit the JamsrPay GitHub repository or contact support.