| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A secure and modern digital payment backend built with Node.js, Express, MongoDB, and JWT.
AlphaPay is a full-featured backend system that simulates real-world digital payments (similar to UPI apps). It includes secure authentication, wallet management, transaction handling, bill payments, admin dashboard.
Live links-
- Frontend: https://alphapay-three.vercel.app
- Backend: https://alphapay.onrender.com
| Layer | Technology |
|---|---|
| Server | Node.js, Express.js |
| Database | MongoDB + Mongoose |
| Auth | JWT |
| Testing | Jest, Supertest, MongoDB Memory Server |
| Utilities | Cron Jobs, Email/OTP, Socket-based alerts |
📁 Project Structure
AlphaPay-backend/
│
├─ backend/
│ ├─ index.js
│ ├─ package.json
│ ├─ public
│ │ └─ avatar/
│ ├─ src
│ │ ├─ app.js
│ │ ├─ config/
│ │ ├─ controllers/
│ │ │ ├─ admin-controllers/
│ │ │ └─ user-controllers/
│ │ ├─ cron.js
│ │ ├─ middleware/
│ │ │ ├─ admin-middleware/
│ │ │ ├─ user-middleware/
│ │ │ └─ errorHandler.js
│ │ ├─ models/
│ │ │ ├─ admin-models/
│ │ │ └─ user-models/
│ │ ├─ routes/
│ │ │ ├─ admin-routes/
│ │ │ └─ user-routes/
│ │ └─ util/
│ └─ tests
│ ├─ admin-tests/
│ └─ user-tests/
├─ docs
│ └─ alphaPay.postman_collection.json
├─ .github/
├─ .gitignore
├─ LICENSE
└─ README.md
Clone the project:
git clone https://github.com/punit-dev/AlphaPay-backend.git
cd AlphaPay-backend/backendInstall dependencies:
npm installSet up environment variables:
Create a .env file in the root directory.
PORT=5000
MONGO_URI=your_mongodb_uri
JWT_SECRET=your_jwt_secret
MY_EMAIL=your_email_service
MY_EMAIL_PASS=your_email_username
ENCRYPTION_KEY=your_encryption_key
SIG_KEY=your_signature_key
NODE_ENV=developmentRun development server:
npm run startRun tests: (Jest + Supertest + MongoDB Memory Server)
npm run testAll APIs (Users + Payments + Bills + Cards + Notifications + Admin + Stats) are documented clearly in Postman.
/docs/AlphaPay.postman_collection.jsonYou can test all routes using the Postman collection provided in the repo.
MIT License © 2025 Punit Poddar
⚠️ This project is developed and maintained by Punit Poddar.
| Back | FazBrowse Home | New Git URL |