oasisscan-api
October 27, 2024 ยท View on GitHub
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
-
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.yamlandapi/etc/exmaple.yamllikejob.yamlandoasisscan-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