cagov / ui-claim-tracker

This repo contains the Claim Status Tracker app, which helps Californians better understand what’s happening with their unemployment claim and benefits.
9 stars 4 forks source link

Claim Status Tracker

This repo contains the Claim Status Tracker app, which helps Californians better understand what’s happening with their unemployment claim and benefits.

Run the application

Prerequisites:

Run this app

  1. Clone this repo
  2. Run yarn install
  3. Define environment variables (see below)
  4. Run yarn dev
  5. Open http://localhost:3000 with your browser to see the result

Environment variables

For local development:

  1. Create a .env.local file in the root of this repo
  2. Define each of the environment variables above
    • Obtain a preconfigured .env.local from an existing developer
    • Set ASSET_PREFIX to ""
  3. Configure a test header
    • Configure ModHeader (firefox/chrome) to send the ID_HEADER_NAME defined header value to the local dev environment - see Vault for value. Also, we recommend limiting ModHeader to only modify localhost:3000
    • Please add developer_test=YOUR_NAME as an additional header to make it easier to distinguish ModHeader queries

Run the test suite

yarn test

or interactively:

yarn test:watch

Update the snapshots

yarn test:update-snapshots # or yarn test -u

Lint the code

You can manually run the linters:

yarn lint

Changed files are auto-linted on commit.

Set up your editor to automatically lint on save

Run Storybook

To develop or preview our front end components start up the Storybook server:

yarn storybook