Display an event schedule from ABE.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
src
static
tests
.eslintrc.yml
.gitignore
LICENSE
README.md
elm-package.json
index.js
package.json
poi.config.js
yarn.lock

README.md

ABE Event Schedule

Display an event schedule from events in ABE.

Develop

Install

  1. Install yarn.

  2. 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

  1. Install and run the ABE back end.
  2. 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
  3. http://localhost:3000/events/?start=2018-4-15&end=2018-4-16 should show a list of events.
  4. yarn start
  5. Visit http://localhost:4000/?server. The ?server query directs the app to query the server. (This is the default behavior when the host is not localhost or 127.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