Skip to content

tiomchik/recipes-web-app

Repository files navigation

Recipes

It's created on FastAPI web app with API, authentication (based on FastAPI users), etc.


App's light theme screenshot

App's dark theme screenshot

Run

To run this app, you need:

  1. Clone this repository.
git clone https://github.com/tiomchik/recipes-web-app.git
  1. Create and activate virtual enviroment.

Windows:

py -m venv .venv
& .venv/scripts/activate.ps1

UNIX:

python3 -m venv .venv
source .venv/scripts/activate
  1. Install the requirements.
pip install -r requirements.txt
  1. Run migrations.
alembic upgrade head
  1. 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
  1. Go to http://localhost:8000/ or to a port you specified.

Tests

To run tests, write this in terminal (from project root directory):

cd tests
pytest . -s -v

License

Code is licensed under the MIT license.