Advanced Programming with Python - Project
ShrekIT! Great small web app for adding Shrek Ears to your photos ๐
All Python dependencies are in the requirements.txt
file. And outside of that we use Deta as our cloud server for the app.
Before starting work on the project you must install all needed dependencies:
pip install -r requirements.txt
Moreover probably will need to setup .env file in the project root with PROJECT_KEY for Deta to work accordingly. For that contact @lswarss
uvicorn main:app
uvicorn app.main:app --reload
For full documentation go the https://localhost:8000/docs
docker build -t apip-image .
docker run -d --name apip-container -p 80:80 apip-image
You can access swagger documentation of the application under address 0.0.0.0/docs
Deployment of the app is made with Docker Registry and DigitialOcean App Platform. And to trigger deployment you must:
- Add new release tag on Github with pattern: v*
- Or merge pull request to main branch
Those actions will trigger deployment pipeline and create new build in registry + deploy it to DigitialOcean.