https://github.com/zooniverse/education-api
Backend for Zooniverse Classrooms
https://github.com/zooniverse/education-api
hacktoberfest
Last synced: 4 months ago
JSON representation
Backend for Zooniverse Classrooms
- Host: GitHub
- URL: https://github.com/zooniverse/education-api
- Owner: zooniverse
- Created: 2016-01-18T14:35:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-03-27T10:17:40.000Z (about 2 years ago)
- Last Synced: 2024-04-15T23:07:29.684Z (about 2 years ago)
- Topics: hacktoberfest
- Language: Ruby
- Homepage:
- Size: 471 KB
- Stars: 1
- Watchers: 14
- Forks: 1
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
## Updating the Kinesis-to-HTTP forwarder
``` bash
cd kinesis-to-http
pip install -r requirements.txt
lambda-uploader
```
## Development setup
Go to https://panoptes-staging.zooniverse.org/oauth/applications and create an application. Paste the credentials into a
new file called `.env` like so:
``` bash
ZOONIVERSE_OAUTH_KEY=key
ZOONIVERSE_OAUTH_SECRET=secret
```
## Test setup
Use docker-compose to start a bash shell
To start the containers run
+ `docker-compose run --service-ports --rm -e RAILS_ENV=test education bash`
Now from within the container
+ First time you will need to create the database
+ `bundle exec rake db:create`
+ Run the tests with
+ `bundle exec rspec`
+ `bundle exec rspec path/to/test_file.rb`