# frontend-blacklist-manager

This is the repo for Blacklist Manager in OA

## Setup

You'll need packagecloud and github tokens to run yarn. (ref .npmrc)<br />
An OA grasstoken from https://oa.qaorch.com/grasssession is also required to run it locally.

```bash
cp .env.shadow .env # initialize environment configuration
nvm use # switch to repos node version
yarn # install dependencies
yarn start:blacklist-manager # runs the application locally
```

## Notable Scripts

In the project directory, you can run:

### `yarn start:blacklist-manager`

Runs the app in the development mode.<br />
Open [http://localhost:8080](http://localhost:8080) to view it in the browser.

The page will reload if you make edits.<br />

**NOTE:**
**Running the project locally requires an active VPN connection.**

### `yarn test`

Runs all unit and linting tests. Run this before creating a PR.

### `yarn test:unit`

Runs the jest unit tests

### `yarn test:unit:watch`

Runs the jest unit tests in watch mode. In watch mode type `p` to enter a filter.

### `yarn build`

Builds the app for production to the `build` folder.<br />
It bundles React in production mode and optimizes the build for the best performance.

Note that this command is not required to run locally, it is run during the build steps in jenkins.