https://github.com/djccnt15/fastapi_board
FastAPI Backend Server project
https://github.com/djccnt15/fastapi_board
fastapi python
Last synced: about 2 months ago
JSON representation
FastAPI Backend Server project
- Host: GitHub
- URL: https://github.com/djccnt15/fastapi_board
- Owner: djccnt15
- License: mit
- Created: 2023-04-03T00:52:14.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-20T15:12:50.000Z (about 2 years ago)
- Last Synced: 2024-06-21T08:50:13.488Z (about 2 years ago)
- Topics: fastapi, python
- Language: Python
- Homepage:
- Size: 234 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Board Service Backend with FastAPI
FastAPI 기반 게시판 서비스 Backend 서버
## Requirements
- Python 3.11
- check `requirements` directory for third-party packages
- MariaDB 11.1
- Redis 6.2
- Grafana
- Prometheus
- ELK
## Memo
- commends for running FastAPI dev server
```powershell
fastapi dev main.py
```
- commends for running uvicorn server for debugging
```powershell
main.py
```
## Migration with Alembic
- initialize alembic
```powershell
alembic init migrations
```
- create revision
```powershell
alembic revision --autogenerate
```
- run migration to latest revision
```powershell
alembic upgrade head
```
## Docker
- Dockerfile build
```
docker build -t fastboard .
```
- Docker container run
```
docker run -itd -p 8000:8000 --name fastboard fastboard
```