Skip to content

Commit b20778e

Browse files
authored
Clean up backend dev environment (#702)
1 parent b306532 commit b20778e

File tree

3 files changed

+32
-12
lines changed

3 files changed

+32
-12
lines changed

backend/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ Take a look at the general contribution rules [here](../CONTRIBUTING.md).
88

99
### Setup & Install
1010
- If you haven't already, switch to the backend folder `cd backend`
11-
- Install dependencies `pip3 install -r requirements.txt`
11+
- Install dependencies with `uv sync`
1212
- 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`)
13-
- Initialize/Upgrade requirements for the recipe scraper `uv run python -c "import nltk; nltk.download('averaged_perceptron_tagger_eng', download_dir='./venv/nltk_data')"`
13+
- Initialize/Upgrade requirements for the recipe scraper `uv run python -c "import nltk; nltk.download('averaged_perceptron_tagger_eng', download_dir='.venv/nltk_data')"`
1414
- Initialize/Upgrade the SQLite database with `uv run flask db upgrade`
1515
- Run debug server with `uv run wsgi.py`
1616
- The backend should be reachable at `localhost:5000`
17+
- For some simple interactions with the backend (like adding a user), you can use `uv run manage.py`

backend/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies = [
2626
"prometheus-flask-exporter>=0.23.2",
2727
"oic>=1.7.0",
2828
"recipe-scrapers>=15.6.0",
29-
"uwsgi>=2.0.28",
29+
"pyuwsgi>=2.0.28",
3030
"celery>=5.4.0",
3131
"sqlite-icu>=1.0",
3232
"lark>=1.2.2",

backend/uv.lock

Lines changed: 28 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)