npm install
from 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 watch
will spin up the alerting-dashboard in watch mode (code changes will refresh)
Jest is the testing library for unit tests.
npm run test:watch
will run all*.test.ts
files in watch modenpm run view:coverage
will startup a server to serve the coverage report for you to view in your browsernpm run detect
will 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
@types
packages) 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-dashboard
websocat ws://localhost:8080