It's created on FastAPI web app with API, authentication (based on FastAPI users), etc.
To run this app, you need:
- Clone this repository.
git clone https://github.com/tiomchik/recipes-web-app.git
- Create and activate virtual enviroment.
Windows:
py -m venv .venv
& .venv/scripts/activate.ps1
UNIX:
python3 -m venv .venv
source .venv/scripts/activate
- Install the requirements.
pip install -r requirements.txt
- Run migrations.
alembic upgrade head
- Change directory to src folder and run local server
cd src
uvicorn main:app --reload
or if you want run on another port:
uvicorn main:app --reload --port=PORT
- Go to http://localhost:8000/ or to a port you specified.
To run tests, write this in terminal (from project root directory):
cd tests
pytest . -s -v
Code is licensed under the MIT license.