Giter Site home page Giter Site logo

rogerhutchings / panoptes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zooniverse/panoptes

0.0 0.0 0.0 3.89 MB

It sees everything

License: Apache License 2.0

Ruby 79.01% JavaScript 0.06% CSS 0.07% Shell 0.06% API Blueprint 16.31% HTML 4.50%

panoptes's Introduction

Panoptes Build Status

The new Zooniverse API for supporting user-created projects.

Documentation

The Panoptes public API is documented here, using apiary.io.

If you're interested in how Panoptes is implemented check out the wiki.

Requirements

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:

Optionally you can run

Installation

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. At the moment, Panoptes only with Docker version 1.6.2.

It's possible to run Panoptes only having to install the fig_rake gem. Alternatives to various rake tasks are presented.

Setup Docker and Docker Compose

Usage

  1. Clone the repository git clone https://github.com/zooniverse/Panoptes.

  2. cd into the cloned folder. Run either bundle install or gem install fig_rake

  3. Setup the application configuration files

  • Run: find config/*.yml.hudson -exec bash -c 'for x; do x=${x#./}; cp -i "$x" "${x/.hudson/}"; done' _ {} +
  1. Install Docker and Docker Compose.

  2. Create and run the application containers by running docker-compose up

  3. After step 5 finishes, open a new terminal and run frake db:create db:migrate to setup the database

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

  5. Open up the application in your browser:

  • If on a Mac, run boot2docker ip 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.

Contributing

Thanks a bunch for wanting to help Zooniverse. Here are few quick guidelines to start working on our project:

  1. Fork the Project on Github.
  2. Clone the code and follow one of the above guides to setup a dev environment.
  3. Create a new git branch and make your changes.
  4. Make sure the tests still pass by running bundle exec rspec.
  5. Add tests if you introduced new functionality.
  6. Commit your changes. Try to make your commit message informative, but we're not sticklers about it. Do try to to add Closes #issue or Fixes #issue somewhere in your message if it's addressing a specific open issue.
  7. Submit a Pull Request
  8. 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.

License

Copyright 2014-2015 by the Zooniverse

Distributed under the Apache Public License v2. See LICENSE

panoptes's People

Contributors

adammcmaster avatar alianos- avatar arfon avatar brian-c avatar camallen avatar chrissnyder avatar edpaget avatar marten avatar mkosmala avatar parrish avatar perry avatar rogerhutchings avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.