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
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,11 +45,30 @@ each time.
45
45
Simply run the below command in the `server` directory
46
46
47
47
```sh
48
-
npm run start-dev
48
+
npm run dev
49
49
```
50
50
51
51
This will start a development server with the `ts-node` and `nodemon` packages. This allows for easy development via cold-reloading. `ts-node` allows for running the typescript code without the need for compliation while `nodemon` monitors for changes to any `.ts` or `.js` files.
52
52
53
+
_Flags_
54
+
55
+
56
+
| Flag | Descriptions |
57
+
| --- | --- |
58
+
| MOCK_DATA | Enables Mock paper data for testing |
59
+
| AUTH_OFF | Disables authentication when set to 'false' |
60
+
61
+
Flags can be called with the following commands
62
+
63
+
```sh
64
+
MOCK_DATA=true npm run dev
65
+
66
+
AUTH_OFF=true npm run dev
67
+
68
+
MOCK_DATA=true AUTH_OFF=true npm run dev
69
+
```
70
+
71
+
53
72
## Testing
54
73
55
74
Tests are stored in the `test/` directory and end with `*.test.ts`. Testing is done using jest.js and is setup with npm.
0 commit comments