ABE Event Schedule
Display an event schedule from events in ABE.
Develop
Install
-
Install yarn.
-
Install npm and elm packages:
$ yarn install
Run
Run with Hard-coded Data
yarn start
will run against a hard-coded data set that is compiled into the
program.
Run against a local ABE instance
- Install and run the ABE back end.
- Run the following, to seed the database with . Add
--drop
to drop existing events.mongoimport --db no-config --collection event --file data/mongodb-example.json
- http://localhost:3000/events/?start=2018-4-15&end=2018-4-16 should show a list of events.
yarn start
- Visit http://localhost:4000/?server. The
?server
query directs the app to query the server. (This is the default behavior when the host is notlocalhost
or127.0.0.1
.)
Run against a remote ABE instance
To run against the production server, set the API_SERVER
environment variable:
env API_SERVER=https://abe.example.com yarn start
Test
yarn test
yarn test:watch
Lint
$ yarn lint
License
MIT