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.
-
Install postgresql
-
Initialize SQL script
Execute the contents of docs/sql/init.sql in postgresql
-
Configuration Files
Copy and rename the following file names:
job/etc/example.yaml
andapi/etc/exmaple.yaml
likejob.yaml
andoasisscan-api.yaml
, and then modify the database and node configuration. -
Build Project
cd job go build -o job cd api go build -o api
-
Run
job -f job/etc/job.yaml api -f api/etc/oasiscan-api.yaml