Monitoring and administration for Chalmers Signals
This project uses Devcontainers to standardize a development environment.
-
Ensure you have the following tools:
- Docker
- VS Code
- Extension: Remote Containers
-
Open the desired workspace (i.e.
./server/signal-monitor-server.code-worskpace
) in VS Code:code ./server/signal-monitor-server.code-workspace
-
Open the command palette in VS Code (
ctrl+p
orcmd+p
), and select:Remote-Containers: Open Workspace in Container...
The container should have all development tools pre-installed and pre-configured, and install any dependencies on startup.
./scripts/run.sh # Run (development) with live-reloading
./scripts/run-prod.sh # Run (production)
./scripts/lint.sh # Check code style and report problems
./scripts/lint-fix.sh # Auto-fix code style and problems
psql # Connect to development Postgres
sqlx migrate add -r <description> # Add a migration
sqlx migrate run # Run pending migrations
sqlx database reset # Reset database
sea-orm generate entity -o src/entities