A boilerplate project for fastapi python project supported by poetry.
Poetry helps you declare, manage and install dependencies of Python projects, ensuring you have the right stack everywhere.
# Install Poetry
pipx install poetry
# Download the source code
git clone https://github.com/arashmad/fastapi-poetry-boilerplate.git
# Install dependencies
cd fastAPI-poetry-boilerplate
poetry install
# Activate virtual environment
poetry shell
# Test the code and installation
make lint && make testYou can also use the project as a template for your own project. To do that you can use this bash file.
git clone https://gist.github.com/fb1f58c88710594df3ecdc5b3387f03b.git
chmod +x fastapi_boilerplate_builder.shOnce you run it, you will be prompted for the following questions:
- Directory of the cloned repository
- Directory of the generated instance
- Slug name
It generates an instance of the project for you and test it to make sure it is working.
After create a new repository on github (with the same slug name an without readme file) follow commands in your terminal to push your intance to github.
To make sure your instance is working you can see the action tabs on github page.
Arash Madadi
Full Stack Developer & Geospatial Expert
Deutsches GeoForschungsZentrum GFZ
Sektion 1.4 (Fernerkundung und Geoinformatik)