A real-time bus sign for the Cohon University Center at Carnegie Mellon University
https://bus-sign.scottylabs.org
- Svelte 45.9%
- Rust 45.7%
- Nix 4.7%
- CSS 1.1%
- TypeScript 1.1%
- Other 1.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
Some checks failed
CI / build (pull_request) Failing after 9s
CI / check-1 (pull_request) Failing after 11s
CI / check (pull_request) Failing after 0s
kennel/build build succeeded
kennel/deploy deployment healthy
CI / build (push) Successful in 7m28s
CI / check-1 (push) Successful in 10m56s
CI / check (push) Successful in 0s
Walk times were set to 3 minutes for #7117 and 5 minutes for #4407. Changed to 1 minute for #7117 and 3 minutes for #4407. TBD: Should it be changed to 2 minutes for #4407? |
||
| .forgejo/workflows | ||
| backend | ||
| frontend | ||
| .env.example | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| devenv.lock | ||
| devenv.nix | ||
| devenv.yaml | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
| secretspec.toml | ||
Bus Sign
Prerequisites
- devenv - provides Cargo, Deno, and other tooling via Nix
- PRT API Key - Obtained from creating a TrueTime account here
- OpenWeather API Key - Obtained from OpenWeatherMap (Current Weather + 5 Day / 3 Hour Forecast)
Setup
Setting up your environment variables
Secrets are managed with secretspec. Authenticate once per machine with:
nix run git+https://git.cmu.dev/ScottyLabs/kennel#login
For per-developer API keys, copy the example env file and fill in your keys:
cp .env.example .env
Allow devenv, or enter the shell if already allowed:
devenv allow
# or: devenv shell
Running the backend
# From the repo root, inside the devenv shell
cargo run -p backend
Running the frontend
cd frontend
# Install dependencies
deno install
# Start the frontend
deno task dev