Giter VIP home page Giter VIP logo

backend-zwallet's Introduction

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

backend-zwallet's People

Contributors

nevalenaginda avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.