Gateway server for all the other "microservice" servers this project neeeeeddddsss.
Significant code was copied from my demo: https://github.com/Interpause/gr-demo-3dgen.git
Template for FastAPI-based API server. Features:
- Supports both CPU/GPU-accelerated setups automatically.
- Poetry for package management.
- Ruff for formatting & linting.
- VSCode debugging tasks.
- Other QoL packages.
Oh yeah, this template should work with the fancy "Dev Containers: Clone Repository in Container Volume..." feature.
- Replace all instances of
py-api-template. Optionally, renamesrcto a nicer name.- Tip: Rename the
srcfolder first for auto-refactoring.
- Tip: Rename the
Ensure the virtual environment is active and poetry install has been run before using the below:
# Launch debugging server, use VSCode's debug task instead by pressing F5.
poe dev
# Run any tests.
poe test
# Build docker image for deployment; will also be tagged as latest.
poe build {insert_version_like_0.1.0}
# Run the latest image locally.
poe prod
# Publish the latest image.
poe publish