Giter VIP home page Giter VIP logo

bnmo-backend's Introduction

bnmo-backend

Tech Stack

Golang 1.18
PostgreSQL 14
Redis 7.0

How-to-Run

You can build the server side by docker compose up in CLI.
Endpoint : http://localhost:3001

Endpoint

[POST] /auth/register
- username
- name
- password
- photo

[POST] /auth/login
- username
- password

[POST] /admin/verify/user?username=xxx

[POST] /admin/verify/req?id=xxx

[GET] /admin/list/user

[GET] /admin/list/history

[GET] /customer/info

[GET] /customer/history/request?page=1&page_size=5 OR /customer/history/transaction?page=1&page_size=5

[POST] /customer/withdraw
- amount
- currency

[POST] /customer/deposit
- amount
- currency

[POST] /customer/transaction
- amount
- username_to
- currency_from

Design Pattern

1. Singleton
Single object databases are used continuously so they are suitable for using the singleton design pattern. Initialization of the client database is carried out at the beginning, and is used continuously.
2. Composite
Database models are in the form of composites, such as RateInfo and QueryInfo which are found in the Converter and User models which are found in several other models such as Transaction and Request.

bnmo-backend's People

Contributors

kristabdi 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.