Skip to content

P7Ninja/Recipe-Service

Repository files navigation

Recipe-Service

This service is made to provide recipes, from a database, from specific queries, run the app and go to /docs to see the endpoints

Running the service

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

Running in docker

Creating docker container and running the app:

docker build -t recipeservice .
docker run -p 8443:8443 recipeservice

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