Skip to content

This is a Paytm-like clone built using the MERN stack. The application allows users to sign up, log in, view their account balance, transfer money to other users, and more.

License

Notifications You must be signed in to change notification settings

Aman-m01/Paytm-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Paytm CLone

  • 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.

Demo 👇

Watch Demo

Features

  • 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.

Backend setup

  1. Clone the repo:
   git clone https://github.com/Aman-m01/Paytm-clone.git
   cd paytm-clone/backend
  1. Install dependencies
npm install 
  1. 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>
  1. Start the backend server:
npm run dev

Routes

User Routes (/api/v1/user)

  • 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).


Account Routes (/api/v1/account)

  • GET /balance: Get account balance (requires authentication).

  • POST /transfer: Transfer balance to another user (requires authentication).


Frontend setup

  1. Navigate to the frontend directory:
cd frontend
  1. Install dependencies
npm install
  1. Create a .env file based on the .env.sample file and fill in your API URL:
VITE_API_URL=http://localhost:3000
  1. Start the frontend Server
npm run dev 

Pages

Signup(/signup)

Login(/signin)

Transfer Money(/send)

Dashboard(/dashboard)

Happy coding! 🎉🎉🎉

About

This is a Paytm-like clone built using the MERN stack. The application allows users to sign up, log in, view their account balance, transfer money to other users, and more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published