Code Monkey home page Code Monkey logo

das-register's Introduction

das-register

Backend of DAS registration service. You can use this repo to build your own DAS registration website, just like https://da.systems do

Prerequisites

Install & Run

# get the code
git clone https://github.com/DeAccountSystems/das-register.git

# edit config/config.yaml before init mysql database
mysql -uroot -p
> source das-register/tables/das_register_db.sql;
> quit;

# compile and run
cd das-register
make register
./das_register --config=conf/config.yaml

Usage

You need to run das-pay before you can run this service

Register

  • Use register API get the order ID
  • The server das-pay is monitoring the balance change of the receiving address on chain, and wait for user to pay with the order ID attached to the payment
  • Das-pay will notify the das-register to start the registration process after the user's payment is completed
  • Wait for das-register to complete the entire registration process
   +---------+                 +----------------+        +-----------+
   |   user  |                 |  das_register  |        |  das pay  |
   +----+----+                 +-------+--------+        +-----+-----+
        |                              |                       |
        |                              |                       |
        +----- Get order id ---------->+                       |
        |                              |                       |
        |                              |                       |
        +<---- Return order id --------+                       |
        |                              |                       |
        |                              |                       |
Pay for the order                      |                       |
      on chain                         |                       |
        |                              |            Update the order status
        |                              |                       |
        |                              |                       |
        |                  Continue the registration           |
        |                              |                       |
        |                              |                       |
        |                              |                       |
        +                              +                       +

Set Reverse Record

Das-register will use user's das balance to set reverse record via API reverse declare

Others

More APIs see API.md

Documents

das-register's People

Contributors

scorpiotzh avatar gitslagga avatar pranksteess 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.