Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.
/ tornado.boot Public archive

Start a service-oriented project rapidly

License

Notifications You must be signed in to change notification settings

ooclab/tornado.boot

Repository files navigation

tornado.boot

Build Status codecov

Start a service-oriented project rapidly

简介

tornado.boot 项目创建一个快速启动(微)服务开发的模版。

使用如下技术堆栈 Dependency graph

使用

创建项目副本

git clone https://github.com/ooclab/tornado.boot.git YOUR_PROJECT_NAME
cd YOUR_PROJECT_NAME
git remote set-url origin YOUR_GIT_REPO_ACCESS

开发

启动服务:

python3 src/server.py

运行管理工具:

# 查看工具帮助
python3 src/manage.py
# 同步数据库
python3 src/manage.py syncdb -d
# 清空数据库
python3 src/manage.py dropdb -d --ignore-env-check

Docker

可以运行 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

About

Start a service-oriented project rapidly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published