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: README.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,29 @@
1
1
# Teaching Website Backend
2
2
The backend for our teaching website.
3
3
4
+
## Run the Project with VS Code
5
+
6
+
The Project is ready to be used with dev containers. You only need a recent version of [Docker](https://www.docker.com/). Then you can reopen the project in a devcontainer (`Ctrl+Shift+P` > `Dev Containers: Reopen in Container`).
7
+
8
+
Setup your local env - inside the devcontainer **you should not set**`DATABASE_URL` yourself.
9
+
10
+
```bash
11
+
USER_ID="<your uuid>"
12
+
USER_EMAIL="<your mail>"
13
+
USER_ROLE="ADMIN"
14
+
NO_AUTH="true"
15
+
```
16
+
17
+
The `USER_ID` and `USER_EMAIL` are used only for seeding the database and are not strictly needed.
18
+
The `USER_ID` is the `ID` attribute from the response of [Graph-Explorer/v1.0/me](https://developer.microsoft.com/en-us/graph/graph-explorer) - you need to log in first...
19
+
20
+
21
+
The Project builds and you can run
22
+
1.`yarn run db:migrate && yarn run db:seed` (needed only on the initial startup)
23
+
2.`yarn run dev`
24
+
25
+
And done...
26
+
4
27
## Dev Dependencies
5
28
6
29
In order to use `.env` files, the [dotenv-cli](https://www.npmjs.com/package/dotenv-cli) must be installed globally:
0 commit comments