Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 741 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 741 Bytes

cellect_panoptes

Zooniverse API specific Cellect server

Development

Use the docker-compose tool to get started.

  1. docker-compose up
  2. Alternatively docker-compose build cellect && docker-compose up

Testing

  1. You'll need a database running to run the specs. Best bet is to use the docker-compose pg database as per development.
  2. Once done you can override the config/database.yml file or use the DATABASE_URL env var, e.g. DATABASE_URL=postgresql://panoptes:panoptes@localhost:6000/cellect_panoptes_test
  3. Create the db using rake tasks and load the test schema (db/schema.rb)

Once all that is done you can run the specs via DATABASE_URL=postgresql://panoptes:panoptes@localhost:6000/cellect_panoptes_test rspec