-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
17 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!-- markdownlint-disable MD033 MD045 --> | ||
<!-- markdownlint-disable MD033 MD045 MD014 --> | ||
|
||
# Server deployment | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Using a mocked bus route | ||
|
||
No bus driver? No problem! You can start the app with a mocked route | ||
by setting `IS_MOCKED=true` in the env file. | ||
|
||
The mocked route will be read from `static/mocks/*.json`. See `mock.rs` for more | ||
details. | ||
|
||
Once you have set `IS_MOCKED=true`, you can start the server as usual. | ||
Mocking works by sending `POST /driver` requests to ourselves, | ||
iterating over the mocked route records. | ||
|
||
## Why would I use this? | ||
|
||
This feature is useful for showcasing the app without having to rely on | ||
a real bus driver, or testing purposes. |