Skip to content

Commit 8bb2d47

Browse files
authored
Merge pull request #9 from wook3024/feature/update-readme
Update readme
2 parents d9687fa + d500751 commit 8bb2d47

File tree

2 files changed

+31
-10
lines changed

2 files changed

+31
-10
lines changed

README.md

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,36 @@
1-
# FastAPI template
2-
3-
## Quickstart
4-
5-
### Build and start containers
6-
1+
# WeatherBot API
2+
---
3+
## Quickstart
4+
가상환경 또는 컨테이너를 사용해 실행합니다.
5+
### container (build and start containers)
76
```sh
87
docker-compose up -d --build
98
```
10-
11-
### API server health check
12-
9+
### venv (setup environments and run server)
10+
```sh
11+
1. pip install pip-tools
12+
2. pip-sync requirements/dev.txt
13+
3. sh run_server.sh
14+
```
15+
---
16+
## Health check
17+
서버 상태를 체크합니다.
1318
```sh
1419
curl -X GET http://localhost:8000/livez
1520
```
21+
---
22+
## Unittest
23+
가상환경 또는 컨테이너를 사용해 테스트합니다.
24+
### container
25+
```sh
26+
docker exec -it web bash -c "pytest -vv tests"
27+
```
28+
### venv
29+
```sh
30+
pytest -vv tests
31+
```
32+
---
33+
## Coinfig
34+
앱의 config를 관리합니다.
35+
- app.conf.log: 로그 설정 config를 관리합니다.
36+
- app.conf.config.service: 전체적인 서비스와 관련된 config를 관리합니다.

run_server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
uvicorn app.main:app --host 0.0.0.0 --reload --reload-exclude logs/
1+
uvicorn app.main:app --host 0.0.0.0

0 commit comments

Comments
 (0)