https://github.com/starcoinorg/starcoin-faucet-api
https://github.com/starcoinorg/starcoin-faucet-api
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/starcoinorg/starcoin-faucet-api
- Owner: starcoinorg
- Created: 2021-08-31T05:32:24.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-05T11:21:52.000Z (almost 3 years ago)
- Last Synced: 2024-12-30T09:16:10.305Z (9 months ago)
- Language: Python
- Size: 149 KB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# development
## 1. install
```shell
pip install -r requirements.txt
```init starcoin-sdk-python
```shell
cd starcoin-sdk-python
python setup.py install
cd ..
```twint with the local code, source of pip doesn't work
## 2. config
env
```shell
export PATH=$PATH:$HOME/.local/bin
export PYTHONPATH=`project path`
## 1. config : mysql、redis etc
cp scripts/env.sh.test scripts/env.sh# 2. source ( must run )
source ./scripts/env.sh
```## 3. db migrate
```shell
# generate migration config file
alembic revision --autogenerate
# migrate
alembic upgrade head
```## 4. runserver
```shell
# root
uvicorn app.main:app --reload --host 0.0.0.0
# run
cd scripts && ./celery_worker.sh
# monitor
cd scripts && ./celery_flower.sh
```# links
swagger api: http://localhost:8000/docs
celery flower: http://127.0.0.1:5555/# CI/CD
## run server in docker
docker/server/README.md
## run worker in docker
docker/worker/README.md