The new backend for Talk
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:
docker-compose run --service-ports --rm -e RAILS_ENV=test talkapi bash
bundle install
RAILS_ENV=test bundle exec rake db:create
RAILS_ENV=test bundle exec rake db:schema:load
RAILS_ENV=panoptes_test bundle exec rake db:create
RAILS_ENV=test bundle exec rake panoptes:db:create_tables
RAILS_ENV=test bundle exec rake panoptes:db:setup
bundle exec rspec
The app is built to conform to the JSON API spec
Serializers - app/serializers
?user_id=1234
?include=comments,board
Policies - 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
Using the gem https://github.com/clio/ten_years_rails to help with the upgrade path https://www.youtube.com/watch?v=6aCfc0DkSFo
docker-compose -f docker-compose-rails-next.yml build
docker-compose -f docker-compose-rails-next.yml run --service-ports --rm talkapi bash
## To run bash in test env
docker-compose -f docker-compose-rails-next.yml run --service-ports --rm -e RAILS_ENV=test talkapi bash
BUNDLE_GEMFILE=Gemfile.next bundle install
OR
next bundle install
Check the issues for what's in development.
Copyright 2014-2015 by the Zooniverse
Distributed under the Apache Public License v2. See LICENSE