https://github.com/sour0v1/mfs-paymate-server
A secure backend for managing user registration, money transactions, cash in/out requests, and transaction history. Implements JWT authentication, password encryption with bcrypt.js, and uses MongoDB for data storage.
https://github.com/sour0v1/mfs-paymate-server
api bycryptjs expressjs jwt-authentication mongodb server
Last synced: about 2 months ago
JSON representation
A secure backend for managing user registration, money transactions, cash in/out requests, and transaction history. Implements JWT authentication, password encryption with bcrypt.js, and uses MongoDB for data storage.
- Host: GitHub
- URL: https://github.com/sour0v1/mfs-paymate-server
- Owner: sour0v1
- Created: 2024-07-16T18:38:46.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-21T09:17:58.000Z (almost 2 years ago)
- Last Synced: 2025-07-11T18:46:11.289Z (11 months ago)
- Topics: api, bycryptjs, expressjs, jwt-authentication, mongodb, server
- Language: JavaScript
- Homepage: https://mfs-paymate.web.app/
- Size: 3.32 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mfs-paymate-server
This repository contains the server-side code for the [mfs-paymate-client](https://github.com/sour0v1/mfs-paymate-client). The server handles user authentication, transactions, cash-in/cash-out requests,
and provides data to the client-side application.
## Features
- **Send Money :** Process and record money transactions between users.
- **Cash In / Out Requests :** Manage and process cash-in and cash-out requests from users.
- **Transaction History :** Store and retrieve transaction history for users and agents.
## Installation and Set Up
**1. Clone the Repository :**
```
git clone https://github.com/sour0v1/mfs-paymate-server.git
cd mfs-paymate-server
```
**2. Install dependencies :**
```
npm install
```
**3. Create .env File :**
```
MONGODB_URI=
JWT_SECRET=
```
**4. Start the Server**
```
node index.js
```
## Security
- **JWT Authentication:** Secure routes using JWT tokens.
- **Password Encryption:** User passwords are encrypted using bcrypt.js before storing in the database.