npm installfrom the root of the repository will install the needed dependencies- In the extensions pane, search for
@recommended, and install the recommended extensions- All team code linting / formatting will happen upon saving
npm run watchwill spin up the alerting-dashboard in watch mode (code changes will refresh)
Jest is the testing library for unit tests.
npm run test:watchwill run all*.test.tsfiles in watch modenpm run view:coveragewill startup a server to serve the coverage report for you to view in your browsernpm run detectwill check for open handles in the tests
Github Actions is used for our internal deployment, steps are documented in the
.github/workflows directory.
- Anything needed by typescript to build (including
@typespackages) need to be included in thedependencies, not thedevDependencies. This could be changed to be more conventional, but the dockerfile steps would also need to be updated.
For staging:
- Connect to the VPN
websocat ws://alerts-api.staging.internal.smartcolumbusos.com:8080
For local:
- Connect to the VPN
docker build -t alerts-dashboard .docker run --name alerts-dashboard -d -p 3000:3000 -p 8080:8080 alerts-dashboardwebsocat ws://localhost:8080