This is a fake money transfer app built using nextjs.
- SignUp/SignIn.
- Automatic UpiId creation on SignUp.
- Session based login using NextAuth.
- OnRamp/OffRamp fake money from fake/to netbanking frontend and server.
- Peer-2-Peer Transfer in app.
- See OnRamp and OffRamp Transactions.
- Transaction Status updates using Websocket server.
- Nextjs
- NextAuth
- Websocket
- Express Server
- Postgres
- Docker
// Make Sure You have env.js created on root folder where you have both netbanking and paymnt repo.
const netbankConfig = {
DATABASE_URL: "YOUR_DATABASE_URL",
HDFC_JWT_LOGIN_SECRET: "PAYMNT_SECRET_HDFC",
REDIS_URL: "YOUR_REDIS_URL"
}
const paymntConfig = {
DATABASE_URL: "YOUR_DATABASE_URL",
HDFC_PAYMNT_BANK_SERVER_KEY: "HDFC_SECRET",
PAYMNT_HDFC_BANK_SERVER_KEY: "PAYMNT_SECRET_HDFC",
KOTAK_PAYMNT_BANK_SERVER_KEY: "KOTAK_SECRET",
PAYMNT_KOTAK_BANK_SERVER_KEY: "PAYMNT_SECRET_KOTAK",
HDFC_BANK_SERVER: "http://localhost:4000",
PAYMNT_WEBHOOK_PORT: 3005,
PAYMNT_WEBSOCKET_PORT: 3006
}
module.exports = {
netbankConfig,
paymntConfig
};
clone the repo
npm install
npx pm2 start ecosystem.config.js
npm run dev:user-app