Git Product home page Git Product logo

express-payment-gateway's Introduction

Express Payment Gateway Api

Features

  • Auth with JWT and Auth with Role Permission
  • Advanced Login And Register
  • Refresh Token JWT
  • Confirmation Email Activation, Reset Password and more
  • Transfer Money To Another Users
  • Integration With Docker
  • Encryption Password
  • Build Automation Using Makefile
  • Any More

Docker Image Registry

docker pull 705471/express-payment:<tag>

Docker Container

  • express-app on 3000:3000
  • postgres-db on 5432:5432
  • postgres-admin on 8080:80

Docker Command Makefile

  • Docker Compose Up

    make cpup env=dev or make cpup env=prod
  • Docker Compose Down

    make cpdown
  • Dockerfile Build

    make dbd or make dbp
  • Application Running

    make dev or make prod

Express Container Default Environment

  • Production

    • PG_URI=postgres://restuwahyu13:restuwahyu13@db:5432/payment
  • Development

    • PG_HOST = db
    • PG_USERNAME = restuwahyu13
    • PG_PASSWORD = restuwahyu13
    • PG_DATABASE = payment
    • PG_PORT = 5432

Postgres Container Default Environment

  • POSTGRES_HOST=db
  • POSTGRES_USER=restuwahyu13
  • POSTGRES_PASSWORD=restuwahyu13
  • POSTGRES_DB=payment

Deploy Docker Container On Heroku

  • goto Clever Cloud create your cloud database
  • docker build -t restuwahyu13/express-payment .
  • heroku container:login
  • heroku create { website-name }
  • docker tag restuwahyu13/express-payment registry.heroku.com/{ heroku-website-name }/web
  • docker push {heroku-website-name}
  • heroku container:release web -a { heroku-website-name }
  • heroku open -a { heroku-website-name }
  • heroku logs -a { heroku-website-name } --tail

Rest API Endpoint

Name Endpoint Method
User
Register /api/v1/users/register POST
Login /api/v1/users/login POST
Activation /api/v1/users/activation/:id GET
Resend /api/v1/users/resend-activation POST
Forgot /api/v1/users/forgot-password POST
Reset /api/v1/users/reset-password/:id POST
admin
Create /api/v1/admins POST
Results /api/v1/admins GET
Result /api/v1/admins/:id GET
Delete /api/v1/admins/:id DELETE
Update /api/v1/admins/:id PUT
Topup
Create /api/v1/topups POST
Results /api/v1/topups GET
Result /api/v1/topups/:id GET
Delete /api/v1/topups/:id DELETE
Update /api/v1/topups/:id PUT
Withdraw
Create /api/v1/withdraw POST
Results /api/v1/withdraw GET
Result /api/v1/withdraw/:id GET
Delete /api/v1/withdraw/:id DELETE
Update /api/v1/withdraw/:id PUT
Transfer
Create /api/v1/transfer POST
Results /api/v1/transfer GET
Result /api/v1/transfer/:id GET
Delete /api/v1/transfer/:id DELETE
Update /api/v1/transfer/:id PUT
Saldo
Create /api/v1/saldo POST
Results /api/v1/saldo GET
Result /api/v1/saldo/:id GET
Delete /api/v1/saldo/:id DELETE
Update /api/v1/saldo/:id PUT
Refresh Token
Refresh /api/v1/refresh-token POST

express-payment-gateway's People

Contributors

restuwahyu13 avatar soumen1102 avatar snyk-bot 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.