Skip to content

Commit bb5628b

Browse files
committed
merged walk-feature into dev
2 parents 03edee3 + 8f7cb0a commit bb5628b

156 files changed

Lines changed: 2222311 additions & 1688 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/Users/ryanlu/Downloads/Projects/mbus-backend-dev/src/assets/walkingCache.json filter=lfs diff=lfs merge=lfs -text
2+
src/assets/walkingCache.json filter=lfs diff=lfs merge=lfs -text

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules/
22
package-lock.json
3-
.env
3+
.env
4+
.vscode/
5+
src/assets/walkingCache.json

README.md

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
# M-Bus Backend
1+
<div align="center">
2+
<img src="static/logo.png" width="150" alt="Maizebus Logo">
3+
<h1>Maizebus Backend</h1>
4+
5+
<p>
6+
<a href="https://mbusdev.github.io/mbus-backend-dev/">
7+
<img src="https://img.shields.io/badge/Documentation-Available-blue?style=for-the-badge&logo=typescript" alt="Documentation" />
8+
</a>
9+
<a href="package.json">
10+
<img src="https://img.shields.io/badge/License-ISC-green?style=for-the-badge" alt="License" />
11+
</a>
12+
</p>
13+
14+
<p>
15+
Backend service for the Magic Bus application. Handles real-time bus tracking, route management, and multi-modal journey planning (bus + walking) using the McRaptor algorithm.
16+
</p>
17+
</div>
218

319
## Setup
420

@@ -14,5 +30,26 @@ To run the backend, run `npm start`.
1430

1531
By default, the service runs on port 3000. To define a port for the service to run on, define an environment variable called `PORT` before running the backend.
1632

33+
## Documentation
34+
35+
This project uses TSDoc for code documentation.
36+
To compile the static documentation:
37+
```bash
38+
npm run docs
39+
```
40+
The documentation is served at `http://localhost:3000/docs` or this [link](https://mbusdev.github.io/mbus-backend-dev/).
41+
1742
## Tests
18-
To run tests, run `npm test`.
43+
44+
This project uses **Vitest** for fast unit and integration testing.
45+
46+
- Run all tests: `npm test`
47+
- Run stress tests: `npm run stress-test`
48+
49+
An example of passing the tests is below.
50+
51+
<img src="static/test_example.png" width="300" alt="test example">
52+
53+
54+
## Contributing
55+
Before submitting a pull request to main, please make sure you pass all the tests and can compile docs. If you believe some of the tests faulty or no longer needed after your commit, please contact Andrew Yu or Ryan Lu on Slack.

docs/.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.

docs/assets/hierarchy.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/highlight.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
:root {
2+
--light-hl-0: #795E26;
3+
--dark-hl-0: #DCDCAA;
4+
--light-hl-1: #000000;
5+
--dark-hl-1: #D4D4D4;
6+
--light-hl-2: #A31515;
7+
--dark-hl-2: #CE9178;
8+
--light-code-background: #FFFFFF;
9+
--dark-code-background: #1E1E1E;
10+
}
11+
12+
@media (prefers-color-scheme: light) { :root {
13+
--hl-0: var(--light-hl-0);
14+
--hl-1: var(--light-hl-1);
15+
--hl-2: var(--light-hl-2);
16+
--code-background: var(--light-code-background);
17+
} }
18+
19+
@media (prefers-color-scheme: dark) { :root {
20+
--hl-0: var(--dark-hl-0);
21+
--hl-1: var(--dark-hl-1);
22+
--hl-2: var(--dark-hl-2);
23+
--code-background: var(--dark-code-background);
24+
} }
25+
26+
:root[data-theme='light'] {
27+
--hl-0: var(--light-hl-0);
28+
--hl-1: var(--light-hl-1);
29+
--hl-2: var(--light-hl-2);
30+
--code-background: var(--light-code-background);
31+
}
32+
33+
:root[data-theme='dark'] {
34+
--hl-0: var(--dark-hl-0);
35+
--hl-1: var(--dark-hl-1);
36+
--hl-2: var(--dark-hl-2);
37+
--code-background: var(--dark-code-background);
38+
}
39+
40+
.hl-0 { color: var(--hl-0); }
41+
.hl-1 { color: var(--hl-1); }
42+
.hl-2 { color: var(--hl-2); }
43+
pre, code { background: var(--code-background); }

docs/assets/icons.js

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)