https://github.com/systemlight/t-fastapi
:lock: :package: FastApi framework back end development template.【基于FastApi框架的后端开发模板】
https://github.com/systemlight/t-fastapi
fastapi python38 template
Last synced: 8 months ago
JSON representation
:lock: :package: FastApi framework back end development template.【基于FastApi框架的后端开发模板】
- Host: GitHub
- URL: https://github.com/systemlight/t-fastapi
- Owner: SystemLight
- License: mit
- Created: 2021-09-16T08:36:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-24T07:41:57.000Z (over 4 years ago)
- Last Synced: 2025-03-03T03:12:56.489Z (about 1 year ago)
- Topics: fastapi, python38, template
- Language: Python
- Homepage:
- Size: 85.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# T-fastapi
fastapi项目开发模板
## 用法
1. 运行项目
```shell
pipenv install
uvicorn main:app --host 0.0.0.0 --port 5000 --reload
```
2. 反向生成ORM模型
```shell
# sqlite
sqlacodegen --outfile models.py sqlite:///database.db
# mysql
sqlacodegen --outfile models.py mysql+pymysql://root:123456@127.0.0.1:3306/test?charset=utf8
```
## License
T-fastapi uses the MIT license, see LICENSE file for the details.