This project is a PayTM-like web application developed using the MERN stack (MongoDB, Express, React, Node.js). It provides functionalities similar to real-world banking transactions, featuring robust user authentication, session-based transactions, and an attractive user interface. The application ensures data integrity and security using tools such as JWT for authentication and Zod for validation.
git clone https://github.com/syedahmedullah14/PayTM-Project.git
cd PayTM-Project
cd backend
Install dependencies:
npm install
Set up environment variables:
Create a config.js
file in the backend directory and add the following
module.export ={
JWT_SECRET=your_jwt_secret}
Start the backend server:
npm start
Navigate to the frontend directory:
cd ../frontend
Install dependencies:
npm install
Start the frontend server using Vite:
npm run dev
http://localhost:3000
for the frontend.http://localhost:5000
for API testing.POST /api/v1/signup
{ "firstName": "string", lastName:string, "email": "string", "password": "string" }
POST /api/v1/user/signin
{ "email": "string", "password": "string" }
POST /api/transactions
Authorization: Bearer <token>
{ "amount": "number", "type": "string" }
GET /api/user/balance
Authorization: Bearer <token>
Contributions are welcome! Please follow these steps:
git checkout -b feature-branch
).git commit -m 'Add some feature'
).git push origin feature-branch
).This project is licensed under the MIT License — see the LICENSE file for details.PayTM-Like Web App