https://github.com/fourcels/tiny-mall
https://github.com/fourcels/tiny-mall
docker fastapi postgresql sqlalchemy
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fourcels/tiny-mall
- Owner: fourcels
- Created: 2022-01-09T13:12:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-20T13:14:50.000Z (over 4 years ago)
- Last Synced: 2025-01-19T12:54:26.690Z (over 1 year ago)
- Topics: docker, fastapi, postgresql, sqlalchemy
- Language: Python
- Homepage: https://api.fourcels.com/docs
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 商家管理后端接口
主要涉及技术栈 [FastAPI](https://fastapi.tiangolo.com/), [SQLAlchemy](https://www.sqlalchemy.org/), [PostgreSQL](https://www.postgresql.org/),
[docker](https://www.docker.com/)
## 相关地址
* [管理后台演示](https://admin.fourcels.com/) 用户名: guest, 密码: guest
* [接口文档](https://api.fourcels.com/docs)
* [管理后台API](https://github.com/fourcels/tiny-mall)
* [管理后台UI](https://github.com/fourcels/tiny-mall-admin-ui)
## 开发
1. [poetry](https://python-poetry.org/) 安装依赖
```bash
poetry install
poetry shell
```
1. [alembic](https://alembic.sqlalchemy.org/en/latest/) 初始化数据库
```bash
alembic upgrade head
python db.py init-admin
```
1. 启动
```bash
python start.py -r
```