open-index/open-npm huggingface dataset:
npm package: @nexxtway/react-evertransit
Description: React components for Evertransit Apps
Latest version: 0.0.13

# react-evertransit

## Usage

### Use of environment variables

In order to use react evertransit components you need to create a `.env` file with the following environment variables:

- REACT_APP_BASE_URL: base url to the firebase express app
- REACT_APP_ET_COOKIE_NAME: cookie name where evertransit token is stored
- REACT_APP_ET_LOGIN_PORTAL: url to the evertransit authentication site
- REACT_APP_DISPATCH_URL: url to the legacy dispatch portal
- REACT_APP_DISPATCH_NEXT_URL: url to the dispatch 2.0 portal
- REACT_APP_DATA_URL: url to the data (import/export) app
- REACT_APP_MESSAGES_URL: url to the messages app
- REACT_APP_ADMIN_URL: url to the admin app

## Local Development

To setup the local develoment environment you need to create an `.env` file with the following environmnent variables and add react.evertransit.com host name to the hosts file

### Use of environment variables

- REACT_APP_BASE_URL: base url to the firebase express app
- REACT_APP_ET_COOKIE_NAME: cookie name where evertransit token is stored
- REACT_APP_ET_LOGIN_PORTAL: url to the evertransit authentication site
- REACT_APP_DISPATCH_URL: url to the legacy dispatch portal
- REACT_APP_DISPATCH_NEXT_URL: url to the dispatch 2.0 portal
- REACT_APP_DATA_URL: url to the data (import/export) app
- REACT_APP_MESSAGES_URL: url to the messages app
- REACT_APP_ADMIN_URL: url to the admin app

#### firebase project

- REACT_APP_FIREBASE_APIKEY
- REACT_APP_FIREBASE_AUTH_DOMAIN
- REACT_APP_FIREBASE_DATABASE_URL
- REACT_APP_FIREBASE_PROJECT_ID
- REACT_APP_STORAGE_BUCKET
- REACT_APP_FIREBASE_MESSAGING_SENDERID

### Add react.evertransit.com to host file

1. open terminal
2. `sudo nano /etc/hosts`
3. add this line `127.0.0.1 react.evertransit.com`
4. Then save and close the file:
   1. ctrl + o
   2. enter
   3. ctrl + x

### Start project

1. `yarn install`
2. `yarn start`