Skip to content

joshwlewis/cyanometer

 
 

Repository files navigation

Cyanometer

Web UI and API for http://cyanometer.net

Various Cyanometer installation locations post image & blueness meta data to the API. The web front end consumes this information and presents an interface to view and navigate the image archive.

API

Check out the API docs: web/controllers/README.md

Local setup

# get src & libs
$ git clone https://github.com/msp/cyanometer.git
$ cd cyanometer && mix deps.get

# create and migrate your database
$ mix ecto.create && mix ecto.migrate

# install Node.js dependencies for UI
$ npm install

# start Phoenix endpoint
$ mix phoenix.server

Visit localhost:4000 in your browser.

Test / Develop

# local test guard
$ mix test.watch

# start the server
$ iex -S mix phoenix.server

Deployment

Heroku based deploys:

Staging

$ git remote add staging https://git.heroku.com/cyanometer-staging.git

$ git push staging master

Production

$ git remote add production https://git.heroku.com/cyanometer.git

$ git push production master

S3 Migrator

# locally
$ export AWS_ACCESS_KEY_ID=123 AWS_SECRET_ACCESS_KEY=asdf && mix run -e Cyanometer.Scripts.migrate_s3

# heroku
$ heroku run:detached --remote staging mix do app.start, s3_tasks.list_bucket cyanometer

$ heroku run:detached --remote staging POOL_SIZE=2 mix do app.start, s3_tasks.migrate

Learn more

Project

Tech

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 38.8%
  • CSS 38.3%
  • JavaScript 17.3%
  • HTML 5.6%