@nexxtway/react-evertransit
v0.0.13
Published
React components for Evertransit Apps
Downloads
2
Keywords
Readme
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
- open terminal
sudo nano /etc/hosts
- add this line
127.0.0.1 react.evertransit.com
- Then save and close the file:
- ctrl + o
- enter
- ctrl + x
Start project
yarn install
yarn start