Giter VIP home page Giter VIP logo

backend-login-simple's Introduction

Backend-login-simple

How to Usage

$ git clone [email protected]:KevinH2810/Backend-login-simple.git
# clone the repository from your branch

$ cd Backend-login-simple
# change directory to Backend-login-simple

$ yarn install or npm install
# install dependencies using yarn or npm

$ export SECRET=secretkeyoflogin
# export the secret key to be used to generate JWT token

$ yarn start or npm start
# start the app using yarn or npm

Routes

available routes on this apps are

localhost:9099/register
localhost:9099/login
localhost:9099/addMoney
localhost:9099/addAssets
localhost:9099/token
localhost:9099/token/add

Register


you can register a new user in here by supplying the username and password.

Login


Used to login and generate the JWTtoken the token are available for 24 Hours by supplying username and password.

Add Money


Used to add Money to user Balance. you can supply username and money, JWT token arent needed because we're assumed the TopUp are added manually

Token - /


Get the list of all available tokens.

Token - /Add


Add New Token by supplying tokenName and tokenPrice

Add Asset


used to add asset based per user id.

it will insert new data if its a new user or update if already exist.

the transaction history is recorded in respective table.

you can supply tokenName, tokenAmount and JWTtoken as Bearer Token in the header

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.