The new Zooniverse API for supporting user-created projects.
The Panoptes public API is documented here, using apiary.io.
If you're interested in how Panoptes is implemented check out the wiki.
Panoptes is primarily developed against stable MRI, currently 2.2.1. It is tested against the following versions:
- JRuby 1.7.18
- 2.2.1
If you're running MRI Ruby you'll need to have the MySQL and Postgresql client libraries installed.
- Ubuntu/Debian:
apt-get install libpq-dev libmysqlclient
- OS X (with homebrew):
brew install mysql postgresql
You'll need to have the following services running:
- Postgresql version > 9.4
- Zookeeper version > 3.4.6
- Redis version > 2.8.19
Optionally you can run
We only support running Panoptes via Docker and Docker Compose. If you'd like to run it outside a container, see the above Requirements sections to get started.
It's possible to run Panoptes only having to install the fig_rake
gem. Alternatives to various rake tasks are presented.
-
Docker
-
Clone the repository
git clone https://github.com/zooniverse/Panoptes
. -
cd
into the cloned folder. Run eitherbundle install
orgem install fig_rake
-
Setup the application configuration files
- Run:
find config/*.yml.hudson -exec bash -c 'for x; do x=${x#./}; cp -i "$x" "${x/.hudson/}"; done' _ {} +
-
Install Docker from the appropriate link above.
-
Create and run the application containers by running
docker-compose up
-
After step 5 finishes, open a new terminal and run
frake db:create db:migrate
to setup the database -
To seed the development database with an Admin user and a Doorkeeper client application for API access run
frails runner db/fig_dev_seed_data/fig_dev_seed_data.rb
-
Open up the application in your browser:
- If on a Mac, run
docker-machine ip default
to get the IP-address where the server is running. - Visit either that address or just localhost on port 3000.
This will get you a working copy of the checked out code base. Keep your code up to date and rebuild the image if needed!
If you've added new gems you'll need to rebuild the docker image by running docker-compose build
.
Thanks a bunch for wanting to help Zooniverse. Here are few quick guidelines to start working on our project:
- Fork the Project on Github.
- Clone the code and follow one of the above guides to setup a dev environment.
- Create a new git branch and make your changes.
- Make sure the tests still pass by running
bundle exec rspec
. - Add tests if you introduced new functionality.
- Commit your changes. Try to make your commit message informative, but we're not sticklers about it. Do try to to add
Closes #issue
orFixes #issue
somewhere in your message if it's addressing a specific open issue. - Submit a Pull Request
- Wait for feedback or a merge!
Your Pull Request will run on travis-ci, and we'll probably wait for it to pass on MRI Ruby 2.2.1 and JRuby 1.7.18 before we take a look at it.
Copyright 2014-2015 by the Zooniverse
Distributed under the Apache Public License v2. See LICENSE