Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ Take a look at the general contribution rules [here](../CONTRIBUTING.md).

### Setup & Install
- If you haven't already, switch to the backend folder `cd backend`
- Install dependencies `pip3 install -r requirements.txt`
- Install dependencies with `uv sync`
- Optionally: Activate your python environment `source .venv/bin/activate` (allows you to omit `uv run` in the following steps, environment can be deactivated with `deactivate`)
- Initialize/Upgrade requirements for the recipe scraper `uv run python -c "import nltk; nltk.download('averaged_perceptron_tagger_eng', download_dir='./venv/nltk_data')"`
- Initialize/Upgrade requirements for the recipe scraper `uv run python -c "import nltk; nltk.download('averaged_perceptron_tagger_eng', download_dir='.venv/nltk_data')"`
- Initialize/Upgrade the SQLite database with `uv run flask db upgrade`
- Run debug server with `uv run wsgi.py`
- The backend should be reachable at `localhost:5000`
- For some simple interactions with the backend (like adding a user), you can use `uv run manage.py`
2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
"prometheus-flask-exporter>=0.23.2",
"oic>=1.7.0",
"recipe-scrapers>=15.6.0",
"uwsgi>=2.0.28",
"pyuwsgi>=2.0.28",
"celery>=5.4.0",
"sqlite-icu>=1.0",
"lark>=1.2.2",
Expand Down
37 changes: 28 additions & 9 deletions backend/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.