Skip to content

chalmersproject/signal-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chalmersproject/signal-monitor

Monitoring and administration for Chalmers Signals

Development

Setup

This project uses Devcontainers to standardize a development environment.

  1. Ensure you have the following tools:

  2. Open the desired workspace (i.e. ./server/signal-monitor-server.code-worskpace) in VS Code:

    code ./server/signal-monitor-server.code-workspace
  3. Open the command palette in VS Code (ctrl+p or cmd+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.

Workflow

./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

About

Monitoring and administration for Chalmers Signals

Resources

Stars

Watchers

Forks

Releases

No releases published