Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend - Zwallet

Zwallet

Table of Contents

🧐 Introduction

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.

💻 Features

  • JWT authentication with cookie

  • Nodemailer for email verification

  • Upload image using multer

  • CRUD for all tables required in the application

⛏️ Built With

⛏️ Prerequisites

💻 Endpoint

  • 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

💻 Installation

  1. Open your terminal or command prompt. Then, clone the repository git clone https://github.com/nevalenaginda/Backend-Zwallet.git
  2. Create database named zwallet and import zwallet.sql from this repository
  3. Go to directory cd Backend-Zwallet
  4. Install all required packages npm install
  5. 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)
  1. Run server `npm run dev'

💭 API Documentation

Run in Postman

✍️ Link

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages