The service mangement service for all services in ga architecture
1.9K
The service mangement service for all services in ga architecture
ga.service 是管理服务的服务,当前设计需要支持:

启动服务:
python3 src/server.py
运行管理工具:
# 查看工具帮助
python3 src/manage.py
# 同步数据库
python3 src/manage.py syncdb -d
# 清空数据库
python3 src/manage.py dropdb -d --ignore-env-check
可以运行 docker-compose 启动开发环境:
docker-compose up -d --build
docker-compose exec api bash
进入容器内部,操作同上
nose2 -v --with-coverage
pylint src tests
flake8
运行测试,并生成覆盖率测试:
nose2 -v --with-coverage

生成 html 报告,使用浏览器查看:
nose2 -v --with-coverage --coverage-report html
open htmlcov/index.html
Content type
Image
Digest
Size
367.1 MB
Last updated
almost 8 years ago
docker pull ooclab/ga.service