SwiftPay is a secure and efficient payment application that enables users to manage their accounts, perform transactions, and track balances seamlessly.
- Frontend: React with Vite, Tailwind CSS
- Backend: Node.js, Express.js, MongoDB
http://localhost:3000/api/v1
Endpoint: POST /user/signup
Request Body:
{
"username": "name@gmail.com",
"firstName": "user",
"lastName": "name",
"password": "Userpassword123"
}Endpoint: POST /user/signin
Request Body:
{
"username": "name@gmail.com",
"password": "Userpassword123"
}Endpoint: GET /user/bulk/:filter
Authorization: Bearer Token
Endpoint: PUT /user
Authorization: Bearer Token
Request Body:
{
"username": "name001@gmail.com",
"firstName": "name001",
"lastName": "name001"
}Endpoint: GET /account/balance
Authorization: Bearer Token
Endpoint: POST /account/transfer
Authorization: Bearer Token
Request Body:
{
"amount": 100,
"to": "67a6353a053802467a59e929"
}SwiftPay ensures secure transactions using MongoDB sessions and transactions. The transfer function validates user balances before performing updates to prevent overdrafts.
- Backend: Hosted on Render
- Frontend: Deployed on Vercel
We welcome contributions! To contribute:
- Fork the repository.
- Create a new branch.
- Make your changes.
- Raise a Pull Request (PR).