The new backend for Talk
By default, Vagrant runs in the staging environment, so you'll want to add configurations:
database.yml
staging:
adapter: postgresql
encoding: unicode
pool: 5
database: talk_staging
username: talk
host: <%= ENV['PG_PORT_5432_TCP_ADDR'] %>
password: <%= ENV['TALK_DB_PASSWORD'] %>
panoptes.yml
staging:
host: 'https://panoptes-staging.zooniverse.org'
secrets.yml
staging:
secret_key_base: <%= ENV['SECRET_KEY_BASE'] %>
Then start everything up with
bundle
vagrant up
open http://localhost:3000/
If you're running outside of vagrant and just want to run the specs ensure you've created all the databases and tables(foreign) via the following commands:
RACK_ENV=test bundle exec rake db:createRACK_ENV=test bundle exec rake db:schema:loadRACK_ENV=panoptes_test bundle exec rake db:createRACK_ENV=test bundle exec rake panoptes:db:create_tablesRACK_ENV=test bundle exec rake panoptes:db:setupSee .travis.yml for more details.
The app is built to conform to the JSON API spec
Serializers - app/serializers
?user_id=1234?include=comments,boardPolicies - app/policies
Schemas - app/schemas
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
Check the issues for what's in development.
Copyright 2014-2015 by the Zooniverse
Distributed under the Apache Public License v2. See LICENSE
Content type
Image
Digest
Size
181 MB
Last updated
over 4 years ago
docker pull zooniverse/talk-api