Skip to content

P7Ninja/Mealplan-Service

Repository files navigation

Mealplan-service

Running the service

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

Running in docker

Creating docker container and running the app:

docker build -t mealplanservice .
docker run -p 8755:8755 mealplanservice

Development

run 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

Start Micro Service

uvicorn app.server:app --reload

Test

pytest tests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors