-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update packages and simplify start command
- Loading branch information
mohammad.mamun
committed
Oct 26, 2023
1 parent
364d152
commit 41fd6bd
Showing
5 changed files
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
## FastAPI MicroService with Docker, Nginx and MongoDB(Motor) | ||
|
||
### Create [virtual environment](https://docs.python.org/3/library/venv.html) and install requirements | ||
```sh | ||
pip install -r requirements.txt | ||
``` | ||
|
||
### Installation Instruction | ||
- Create [virtual environment](https://docs.python.org/3/library/venv.html) and install requirements | ||
```sh | ||
pip install -r requirements.txt | ||
``` | ||
- Copy .env.example as .env | ||
```sh | ||
cp .env.example .env | ||
``` | ||
### Run docker compose | ||
- Make sure [docker](https://docs.docker.com/engine/install) and [docker-compose](https://docs.docker.com/compose/install/) installed | ||
|
||
### Lets Run | ||
### Lets Run with Docker | ||
- Docker run `sudo docker-compose up -d --build` | ||
- Locally run `uvicorn src.servers.start:app --reload` | ||
|
||
### Lets Run Locally | ||
- Locally run `uvicorn server:app --reload` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
fastapi==0.66.0 | ||
uvicorn==0.14.0 | ||
motor==2.4.0 | ||
python-dotenv==0.18.0 | ||
gunicorn==20.1.0 | ||
fastapi==0.104.0 | ||
uvicorn==0.23.2 | ||
motor==3.3.1 | ||
python-dotenv==1.0.0 |
File renamed without changes.