Skip to content

zooniverse/talk-api

Repository files navigation

Talk-Api

Build Status

The new backend for Talk

Setting up

Build & start the docker containers:

  docker-compose build
  docker-compose up
  open http://localhost:3000/

Alternatively use docker to run a testing environment bash shell and run test commands, run:

  1. docker-compose run --service-ports --rm -e RAILS_ENV=test talkapi bash
  2. Install the gem dependencies for the application bundle install
  3. Setup the test database **
    1. RAILS_ENV=test bundle exec rake db:create
    2. RAILS_ENV=test bundle exec rake db:schema:load
    3. RAILS_ENV=panoptes_test bundle exec rake db:create
    4. RAILS_ENV=test bundle exec rake panoptes:db:create_tables
    5. RAILS_ENV=test bundle exec rake panoptes:db:setup
  4. bundle exec rspec

** See .travis.yml for more details on how to setup the talk database.

Layout

The app is built to conform to the JSON API spec

Resources

  • Board
  • Comment
  • Conversation
  • Discussion
  • Moderation
  • Subject
  • Tag
  • User

Panoptes

Talk is built to integrate with Panoptes

Authentication is provided by signing your requests with a Bearer-Token

Some resources (User, Subject) are proxied from Panoptes

To-Do

Check the issues for what's in development.

License

Copyright 2014-2015 by the Zooniverse

Distributed under the Apache Public License v2. See LICENSE