Display an event schedule from events in ABE.
-
Install yarn.
-
Install npm and elm packages:
$ yarn install
yarn start will run against a hard-coded data set that is compiled into the
program.
- Install and run the ABE back end.
- Run the following, to seed the database with . Add
--dropto 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
?serverquery directs the app to query the server. (This is the default behavior when the host is notlocalhostor127.0.0.1.)
To run against the production server, set the API_SERVER environment variable:
env API_SERVER=https://abe.example.com yarn startyarn test
yarn test:watch$ yarn lintMIT