forked from ScottyLabs/bus-sign
A real-time bus sign for the Cohon University Center at Carnegie Mellon University
- 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 |
|---|---|---|
|
|
||
| .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