Created by maksymstepaniuk (maxstepanyuk on github). The original repository: social-wardrobe-fastapi
Before using this in your own works, please ask me first.
Contact me or see what I'm up to - maksstep.com or linktree
Swagger documentation http://127.0.0.1:8000/docs
Redoc documentation http://127.0.0.1:8000/redoc
OpenAPI and JSON Schema http://127.0.0.1:8000/openapi.json
python3 -m venv .venv-debian
source .venv-debian/bin/activate
pip install -r requirements_manual.txt
# or alternatively install from requirements.txt
# ...
deactivate # when you are finishedpython -m venv .venv-win
.venv-win\Scripts\activate
pip install -r requirements_manual.txt
# or alternatively install from requirements.txt
# ...
deactivate # when you are finishedto update requirements.txt:
pip freeze > requirements.txtuvicorn app.main:app --host 0.0.0.0 --port 8000 --reloadapp.main:app - from the "app" package, import "main" module and run the "app" instance.
--host 0.0.0.0 - open to a local network
--port=8000 - use port 8000.
--reload - reload server on file update
fastapi dev app/main.py --host 0.0.0.0 --port 8000app/main.py - path to the FastAPI application file
--host 0.0.0.0 - open to a local network
--port 8000 - use port 8000
.env.shared - default values
.env.secret - your sensitive variables (that will override the default ones). you may create this file but don't commit it. use .env.shared as an example