bitcat365 / oasisscan-backend

oasisscan.com backend
3 stars 4 forks source link

oasisscan-api

This is the oasisscan api. Previously, this api was written in Java. Due to compatibility issues, this project has been refactored into Go to better match the oasis-core.

This project is developed based on go-zero.

Data storage uses postgresql, and no longer uses mysql and elasticsearch.

Deployment

  1. Install postgresql

  2. Initialize SQL script

    Execute the contents of docs/sql/init.sql in postgresql

  3. Configuration Files

    Copy and rename the following file names: job/etc/example.yaml and api/etc/exmaple.yaml like job.yaml and oasisscan-api.yaml, and then modify the database and node configuration.

  4. Build Project

    cd job
    go build -o job
    cd api
    go build -o api
  5. Run

    job -f job/etc/job.yaml
    api -f api/etc/oasiscan-api.yaml

Document

swagger

changelog