## frontend-video-player

### Setup

Make sure your yarn and node versions are up to date:

```bash
brew upgrade node
brew upgrade yarn
```

Get the application running:

```bash
cp .env.shadow .env # initialize environment configuration
# edit .env and add grass token
yarn --frozen-lockfile # install all dependencies
yarn start:main # start dev server
```

To see all available tasks, run `yarn run`.


### Usage

- Add *frontend-video-player* to your *package.json*: ` "frontend-video-player":"git+ssh://git@github.com/theorchard/frontend-video-player.git#<version>"`
- Re-install your dependencies: `yarn`
- Import *frontend-video-player.css* in your *app.scss*: `@import "~frontend-video-player/build/frontend-video-player.css";`
- Import the *VideoPlayer* component: `import { VideoPlayer } from 'frontend-video-player';`
- Render the *VideoPlayer* component: `<VideoPlayer productId={...} />`
