Make a .env file in the root directory and create a variable write the following:
HOST='YOUR_HOST'
USER='YOUR_USER'
PASSWORD='YOUR_PASSWORD'
DATABASE='MealPlanService'
RECIPESERVICE='http://recipeserviceurl:port'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 mealplanservice .
docker run -p 8755:8755 mealplanservicerun 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