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/Setup.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,9 @@ Environment:
20
20
21
21
5.`uv run pre-commit install` (for installing git hook in .git)
22
22
23
-
5. Make directory for builds of static files: `mkdir staticfiles`
23
+
6. Make directory for builds of static files: `mkdir staticfiles`
24
24
25
-
6. Create .env file for storing secrets. The contents should be like:
25
+
7. Create .env file for storing secrets. The contents should be like:
26
26
27
27
```ini
28
28
# PostgreSQL
@@ -36,9 +36,9 @@ Environment:
36
36
OFFERINGS_THRESHOLD_FOR_TERM_UPDATE=100
37
37
```
38
38
39
-
7. Build static files: `make collect`
39
+
8. Build static files: `make collect`
40
40
41
-
8. Configure database
41
+
9. Configure database
42
42
43
43
1. Install Postgres:
44
44
@@ -91,11 +91,11 @@ Environment:
91
91
92
92
10. Auto setup database connection and static file routes in Django: `make migrate`, `make makemigrations`
93
93
94
-
9. Install cache database redis: `sudo apt install redis-server`, `sudo systemctl start redis`. Run `sudo systemctl enable redis` to auto-start redis service on start-up.
94
+
10. Install cache database valkey: `sudo apt install valkey`, `sudo systemctl start valkey`. Run `sudo systemctl enable valkey` to auto-start valkey service on start-up.
95
95
96
-
10. `make run`and visit <http://127.0.0.1:8000/>
96
+
11. `make run`and visit <http://127.0.0.1:8000/>
97
97
98
-
11. Add local admin:
98
+
12. Add local admin:
99
99
100
100
1. `make createsuperuser`. The email can be blank. Use a strong password in production.
101
101
@@ -112,7 +112,7 @@ Environment:
112
112
u.save()
113
113
```
114
114
115
-
12. Crawl data from JI official website:
115
+
13. Crawl data from JI official website:
116
116
117
117
1. Edit `COURSE_DETAIL_URL_PREFIX`in`apps/spider/crawlers/orc.py`: Add a number after url param `id`like this: `...?id=23`, so only course id starting from23 (e.g. 230-239, 2300) will be crawled, so as to save time during development. Remember not to commit this change.
118
118
@@ -125,4 +125,4 @@ Environment:
125
125
crawl_and_import_data()
126
126
```
127
127
128
-
13. Run frontend (dev mode): `make dev-frontend`and visit http://127.0.0.1:5173/
128
+
14. Run frontend (dev mode): `make dev-frontend`and visit http://127.0.0.1:5173/
0 commit comments