Navigate the Cyanometer archive
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
utils
.firebaserc
.gitignore
README.md
api.js
db.json
elm-package.json
firebase.json
package.json
webpack.config.js

README.md

Cyanometer Archive

Navigate the Cyanometer archive

Local setup

Install the necessary node packages:

npm install

Test / Develop:

In one terminal run the webpack dev server which defaults to the fake, embedded API (readonly):

npm run dev

Or choose an API (the Cyanometer API source is msp/cyanometer)

# fake, embedded
npm run api
open http://localhost:4000

# local API
API_ENDPOINT=http://localhost:4000/ npm run dev

# staging
API_ENDPOINT=https://cyanometer-staging.herokuapp.com/ npm run dev

You can also run guard to do TDD

npm run guard

Formatting

Elm is whitespace sensitive so I've been using elm-format for consistency. Please do the same.

Staging

Deploy

API_ENDPOINT=https://cyanometer-staging.herokuapp.com/ npm run deploy

Open https://cyanometer-archive.firebaseapp.com