ces-arrivals-board requires olli-stop-backend. Follow the instructions to install olli-stop-backend before proceeding.
- Install Node
- Clone this repo
- change to directory where you want to install
git clone [email protected]:AccessibleOlli/ces-stop-arrivals.git
- Install node modules
cd ces-stop-arrivals
npm install
- Copy the
.env.template
file to.env
cp .env.template .env
The file should look similar to the following (change the CouchDB database urls to point to your CouchDB instance and database (with the appropriate credentials):
PORT=44002
BROWSER=startChrome.js #optional
REACT_APP_REMOTE_TELEMETRY_DB=http://admin:[email protected]:5984/telemetry_transitions
REACT_APP_REMOTE_EVENT_DB=http://admin:[email protected]:5984/rule_event_transitions
REACT_APP_OLLI_STOP_IDX=3
- Make sure your proxy setting in
package.json
is configured properly to point to olli-stop-backend. It should look something like this:
"proxy": "http://localhost:44000"
- Ensure you are running olli-stop-backend if you want the weather component to work.
npm start
Simulate bus movement events with ao_sim
- create
telemetry_transitions
database in CouchDB/Cloudant git clone [email protected]:pdykes/ao_sim.git
cd ao_sim/telemetry
export NODE_CONFIG_DIR=../config
node telemetry.js
- in another terminal window
6.
cd ao_sim/cmdline
7.export NODE_CONFIG_DIR=../config
8.node ao.js --control telemetry --operation enable
Simulate bus movement events with olli_sim
TODO