Python project template repository using FastAPI.
Contains:
- precommit file
- Contains CI/CD pipelines through github workflows.
- deployment pipelines (I tested render and to DigitalOcean).
conda create -n your_env_name
conda install poetry
poetry install
In the terminal, from the root folder of the repository:
python -m src.__template_pkg__.api.main
git clone https://github.com/you/python-repo-template.git my-project
cd my-project
After cloning this template:
-
Remove template git history:
rm -rf .git git init git add . git commit -m "Initial commit from template"
-
Create your branches:
git branch dev git branch staging git branch prod
-
Set up branch protection rules (if using GitHub/GitLab)
main/master: Production-ready codedev: Development branchfeature/*: Feature brancheshotfix/*: Emergency fixes
Render is a cloud platform that simplifies the process of building, deploying, and scaling web applications and services. https://render.com/
I tested a deployment on render render. there I had to:
- sign in
- create a web service
- link to github repository
- change service settings to deploy on last commit
- Add environment variables through render's interface
See VPS_deployment