This is the backend server for a payment system application built with Node.js, Express.js, MongoDB, and Mongoose.
This backend server provides APIs for user authentication, transactions, friend management, and more for a payment system application.
- User authentication (sign up, login)
- View user details (balance, transactions)
- Transfer money between users
- Credit and debit money from user account
- Update user password
- Add and manage friends
- Send and fulfill money request
-
Clone this repository:
-
Install dependencies:
-
Set up MongoDB:
- Ensure that MongoDB is installed and running locally on port
27017
. - Create a database named
paytm
.
- Ensure that MongoDB is installed and running locally on port
-
Start the server:
The server should now be running on port 3000
.
Once the server is running, you can use the provided APIs to interact with the payment system application.
- POST /signup: Create a new user account.
- POST /login: Log in with existing user credentials.
- GET /users: Retrieve details of all users.
- GET /transactions: Retrieve details of all transactions.
- POST /givemoney: Transfer money to another user.
- POST /creditmoney: Credit money to user account.
- POST /debitmoney: Debit money from user account.
- POST /updatePassword: Update user password.
- GET /showpassword: Retrieve user password (for testing purposes).
- GET /friends: Retrieve user's friends list.
- POST /addfriends: Add a new friend.
- GET /sentRequests: Retrieve sent money requests.
- GET /requestReceived: Retrieve received money requests.
- POST /sendRequest: Send a money request.
- POST /fulfillRequest: Fulfill a money request.
For detailed information about request and response formats, please refer to the source code or API documentation.
- express
- cors
- jsonwebtoken
- mongoose
Contributions are welcome! Please fork this repository and submit a pull request with your improvements.
This is the frontend application for a payment system built with React.js. It interacts with the backend server to provide users with a user-friendly interface for managing transactions, friends, and account details.
This frontend application provides a user interface for interacting with the payment system backend. Users can sign up, log in, view their account details, send and receive money, manage friends, and more.
- User authentication (sign up, login)
- View account details (balance, transactions)
- Transfer money to other users
- View and manage friends list
- Send and receive money requests
-
Clone this repository:
-
Install dependencies:
-
Start the development server:
-
Start the development server:
The application should open in your default web browser at http://localhost:5173
.
Once the application is running, you can navigate through the different pages using the navigation bar. Use the provided forms and buttons to interact with the backend server and perform various actions such as sending money, adding friends, and updating account details.
- react
- react-dom
- react-router-dom
- axios
Contributions are welcome! Please fork this repository and submit a pull request with your improvements.