This service is made to provide recipes, from a database, from specific queries, run the app and go to /docs to see the endpoints
Make a .env file in the root directory and create a variable write the following:
DB_CONN="mysql+mysqlconnector://<YOUR_SQLALCHEMY_STRING>"the mysql prefix is only if youre using a mysql server, else look up different sqlalchemy supported sql databases
Creating docker container and running the app:
docker build -t recipeservice .
docker run -p 8443:8443 recipeservicerun this in powershell:
python -m venv .venv
.venv/Scripts/Activate.ps1
python -m pip install -r requirements.txt
python -m pip install -e .on macOS/Linux you might need to do source .venv\Scripts\activate and .venv/Scripts/activate.bat in windows CMD
uvicorn app.server:app --reloadpytest tests