Zwallet is an E-Wallet Application with PIN and Password security so users can have transaction safely. Other features are user profile, user search, and transfer history. This is the backend service for this app. You can see the frontend service here.
-
JWT authentication with cookie
-
Nodemailer for email verification
-
Upload image using multer
-
CRUD for all tables required in the application
- User
METHOD | API |
---|---|
GET |
/api/allUser/:id |
GET |
/api/user/:id |
GET |
/api/profile |
GET |
/api/activate/:token/:email |
POST |
/api/login |
POST |
/api/register |
PATCH |
/api/user/:id |
POST |
/api/user/:id |
PATCH |
/api/changePassword/:id |
POST |
/api/forgotPassword |
GET |
/api/resetPassword/:token/:email/:password |
- Transfer
METHOD | API |
---|---|
POST |
/api/transfer/:id |
POST |
/api/transferProcess/:id |
POST |
/api/transferSuccess/:id |
POST |
/api/transferCancel/:id |
POST |
/api/topUp/:id |
- History
METHOD | API |
---|---|
GET |
/api/history/:id |
GET |
/api/historyAdmin |
GET |
/api/notifications/:id |
GET |
/api/detailHistory/:id |
POST |
/api/history |
PATCH |
/api/history/:id |
- Open your terminal or command prompt. Then, clone the repository
git clone https://github.com/nevalenaginda/Backend-Zwallet.git
- Create database named
zwallet
and importzwallet.sql
from this repository - Go to directory
cd Backend-Zwallet
- Install all required packages
npm install
- Create a new file named
.env
PORT = (The port you are using, for example 5000)
DB_HOST = localhost
DB_USER = root
DB_PASSWORD =
JWT_SECRET= (For example AsxW123)
FROM_EMAIL = (The email you used to send the verification message)
EMAIL_PASS = (Your email password, for example Password1234 #)
FRONTEND_PATH = (Your frontend address, for example http: // localhost: 3000)
- Run server `npm run dev'
- โ
Frontend Zwallet
- ๐
Production