File tree Expand file tree Collapse file tree 2 files changed +31
-10
lines changed Expand file tree Collapse file tree 2 files changed +31
-10
lines changed Original file line number Diff line number Diff line change 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)
7
6
``` sh
8
7
docker-compose up -d --build
9
8
```
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
+ 서버 상태를 체크합니다.
13
18
``` sh
14
19
curl -X GET http://localhost:8000/livez
15
20
```
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를 관리합니다.
Original file line number Diff line number Diff line change 1
- uvicorn app.main:app --host 0.0.0.0 --reload --reload-exclude logs/
1
+ uvicorn app.main:app --host 0.0.0.0
You can’t perform that action at this time.
0 commit comments