- This is a Paytm-like clone built using the MERN stack (MongoDB, Express.js, React.js, and Node.js). The application allows users to sign up, log in, view their account balance, transfer money to other users, and more.
- User Authentication : Secure user registration and login.
- Account Balance : View current account balance.
- Money Transfer : Transfer money between users.
- Filter Users : Get users based on filter queries.
- Dashboard : View account balance and user list.
- Clone the repo:
git clone https://github.com/Aman-m01/Paytm-clone.git
cd paytm-clone/backend
- Install dependencies
npm install
- Set up environment variables:
- Create a .env file based on the .env.sample file and fill in your MongoDB URI, port, and JWT secret:
PORT=3000
MONGO_URI=<your_mongodb_connection_string>
JWT_SECRET=<your_jwt_secret_key>
- Start the backend server:
npm run dev
-
POST /signup
: Sign up a new user. -
POST /login
: Log in an existing user. -
PUT /update
: Update user information (requires authentication). -
GET /bulk
: Get users with filter query. -
GET /getuser
: Get current user information (requires authentication).
-
GET /balance
: Get account balance (requires authentication). -
POST /transfer
: Transfer balance to another user (requires authentication).
- Navigate to the frontend directory:
cd frontend
- Install dependencies
npm install
- Create a .env file based on the .env.sample file and fill in your API URL:
VITE_API_URL=http://localhost:3000
- Start the frontend Server
npm run dev