You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/reference/contributing.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,15 +36,15 @@ The `description` is a descriptive summary of the change the PR will make.
36
36
- Run app: `flutter run`
37
37
38
38
=== "Backend"
39
-
- Install Python 3.12+ and [UV](https://docs.astral.sh/uv/getting-started/)
40
-
- Go to `./backend`
41
-
- Install dependencies `uv sync`
42
-
- Install the pre-commit hooks `uv pre-commit install`
39
+
- If you haven't already, switch to the backend folder `cd backend`
40
+
- Install dependencies with `uv sync`
41
+
- Install the pre-commit hooks `uv run pre-commit install`
43
42
- 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`)
44
-
- Initialize/Upgrade requirements for the recipe scraper `uv run python -c "import nltk; nltk.download('averaged_perceptron_tagger_eng', download_dir='./venv/nltk_data')"`
43
+
- Initialize/Upgrade requirements for the recipe scraper `uv run python -c "import nltk; nltk.download('averaged_perceptron_tagger_eng', download_dir='.venv/nltk_data')"`
45
44
- Initialize/Upgrade the SQLite database with `uv run flask db upgrade`
46
45
- Run debug server with `uv run wsgi.py`
47
46
- The backend should be reachable at `localhost:5000`
47
+
- For some simple interactions with the backend (like adding a user), you can use `uv run manage.py`
48
48
49
49
!!! danger Known Warnings
50
50
Do not run the backend using `flask` as it won't initialize the sockets properly.
0 commit comments