21 lines
529 B
Markdown
21 lines
529 B
Markdown
This is a template backend service based on fastapi + mongodb app
|
|
|
|
To start development in local, go to the root directory of the project YOUR_WORKSPACE_PATH/helloworld/
|
|
```bash
|
|
docker compose -f app/scripts/mongodb/docker-compose.yml up -d
|
|
```
|
|
|
|
Then run the app
|
|
```bash
|
|
uvicorn app.main:app --reload
|
|
```
|
|
|
|
In case a new dependency is added, run the following command to update the requirements.txt file
|
|
```bash
|
|
# optional: if you have not installed pipreqs
|
|
pip3 install pipreqs
|
|
|
|
# generate requirements.txt
|
|
pipreqs . --force
|
|
```
|