A simple Paytm-like payment application that allows users to transfer virtual money between accounts.
- User registration and login
- JWT-based authentication
- View account balance
- Transfer money between users
- Frontend: React, React-router, Axios, Tailwind CSS
- Backend: Node.js, Express.js, MongoDB, Mongoose
- Authentication: JWT (JSON Web Token)
- Database: MongoDB
- Node.js and npm installed
- MongoDB installed and running
-
Clone the Repository:
Download the project to your local machine using Git.
Copy codegit clone https://github.com/yourusername/your-repository.git -
Navigate to the Project Directory:
Move into the project's root directory.
Copy codecd paytm -
Install Backend Dependencies:
Go to the backend folder and install the required packages.
Copy codecd backend npm install -
Install Frontend Dependencies:
Move to the frontend folder and install the required packages.
Copy codecd ../frontend npm install -
Set Up Environment Variables:
Create a .env file in the backend directory and add necessary environment variables like JWT_SECRET and database connection strings. Example:
Copy codeJWT_SECRET=your_jwt_secret
change the mongoURL -
Start MongoDB:
Ensure MongoDB is installed and running on your machine. -
Run the Backend Server:
Go back to the backend directory and start the server.
Copy codecd ../backend node index.js -
Run the Frontend Application:
Go to the frontend directory and start the React development server
Copy codecd ../frontend npm run devYour application should now be up and running onhttp://localhost:5173for the frontend and the backend API should be accessible as configured.
- Dashboard: View your account balance and available users.
- Send Money: Transfer money to another user.
- Confirmation: Receive confirmation after a successful transaction.
- Logout: Logout to end session.




