Ruby HTML PLpgSQL CSS JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
db
lib
public
test
.codeclimate.yml
.gitignore
.jshintrc
.ruby-version
.sample.env
.travis.yml
Gemfile
Gemfile.lock
LICENSE
Procfile
README.md
Rakefile
app.rb
assets-manifest.json
config.ru
index.html
latest.dump
mask.sketch
newrelic.yml
package.json
webpack.config.js

README.md

Blue Skies Build Status Code Climate

Blue Skies is an automatically curated digest. It is originally made for air sports but can be used for any kind of digest.

Automatic curation

Blue Skies is based on Facebook pages to get new links. Trused facebook pages can be added to the database. A worker will then fetch new link from these pages regularly.

Setup

bundle install
createdb blueskies_development
rake db:migrate

Configuration

Several environment variables are needed. You can copy .sample.env into a .env file and tweak your configuration there.

Seeding

Open a console:

foreman run pry -r ./app

And add curators:

BlueSkies::Models::Curator.create(facebook_identifier: 'facebook_page')

You can also add some interests:

BlueSkies::Models::Interest.create(name: 'Blue Skies')

Development

npm install
foreman run dev
foreman run web
foreman run worker

Testing

createdb blueskies_test
rake db:test

Tasks

Adding a curator

To add a curator named blueskies on Facebook:

rake curator:add[blueskies]