| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Sample FastAPI application.
Note that this is a template project. You will need to make changes to this application if you want to make use of it. Please read the Template readme file for more information on what this project does and how to use the template.
pyenv installImportant
You should NOT install poetry into your virtual environment as stated in their docs, as this may mess with your dependencies.
# Note: For POSIX, pyenv can create a named virtual environment which you can use instead.
# For Windows, pyenv-win exists, but doesn't have this feature afaik.
# Create a local virtual environment (inside .venv/)
python3 -m venv .venv
# Activate it:
# Windows
./.venv/Scripts/activate
# POSIX
source ./.venv/bin/activate# [Windows] Run the `scripts/dev-setup.bat` script:
./scripts/dev-setup.bat
# [POSIX] Run the `scripts/dev-setup.sh` shell script using any bash-compatible shell:
bash ./scripts/dev-setup.shNote
This scripts does the following: Creates a dev/ folder needed to save log files and other persistent files used by the app, installs the requirements of the app using poetry, installs pre-commit hooks to this repository and also runs the pre-commit hooks.
cp .env.example .env
# Open the new .env file in your favourite editor and make the required changes# Windows
./scripts/dev-launch.bat
# POSIX
bash ./scripts/dev-launch.shsample-fastapi --help| Back | FazBrowse Home | New Git URL |