Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Build Status Dependency Status

Nectar Backend

Backend for Nectar app

Copyright © 2017 The PSU CS Beeminder Capstone Team

Remade and maintained by: Teal Dulcet

Adapted from Gal Tsubery's Quantifier.

Nectar adds support for more integrations on Beeminder. Automatically gets data from supported integrations and adds it to Beeminder goals.

Available for testing at:

Requires Ruby 2.3 or greater, Rails or greater and PostgreSQL 9.1 or greater. Must set all environment variables listed in: .env.local.

Table of Contents


The idea behind the Nectar Backend is to provide a server for the Nectar Frontend Mobile app, that integrates naturally with the Beeminder website.


This app allows the user to do the following things for their Beeminder account

  • View a Goal
  • Add integration to a goal

Supported Integrations

The Nectar Backend supports the following integrations:

  • Beeminder
  • Austin Bcycle
  • Bitbucket
  • Blogger
  • Dropbox
  • Evernote
  • Facebook
  • Fitbit
  • Flickr
  • GitHub
  • Gmail
  • Google Calendar
  • Google Drive
  • Google Fit
  • Google+
  • Google Tasks
  • Instagram
  • KhanAcademy
  • LinkedIn
  • Microsoft Office365
  • Moves
  • Pocket
  • Quizlet
  • Remember The Milk
  • RunKeeper
  • Slack
  • Stack Overflow
  • Strava
  • Trello
  • Tumblr
  • Twitter
  • Typeracer
  • Wikipedia
  • World Community Grid
  • Wunderlist
  • YouTube

Most of these integrations do not yet have metrics to track.


The following instructions will enable you to download and compile the source into a working server:

  1. Install Ruby:
    1. Requires Ruby 2.3 or greater (because of this:
    2. Note: If you are using Windows, we highly recommend you use Bash on Windows 10 ( and then follow the Linux instructions. If you install on windows, use the RailsInstaller to install Ruby, Rails and Bundler: Here are some links to help solve some of the problems you may encounter:
    3. Note: If you are using Linux and your package manager provides an older version, you can use the Ruby Version Manager:
  2. Install Rails: and Bundler
    1. Requires Rails or greater.
  3. Install PostgreSQL:
    1. Requires PostgreSQL 9.1 or greater.
  4. Setup PostgreSQL by opening the GUI.
  5. Clone or Download the files: and CD into the directory.
  6. Set all environment variables listed in: .env.local.
    1. The bottom six are required.
    2. Get the SECRET_KEY_BASE by running: rake secret.
  7. Run: bundle install. (On Windows or Mac, follow the instructions on the top of this file to install the pg gem: config/database.yml.)
    1. Note: If you are using Windows, you must set a System Environment Variable:
      1. Open “This PC” and find the installation folder for PostgreSQL. Mine was C:\Program Files\PostgreSQL\9.6.
      2. Open “This PC” > “Properties” > “Advanced system settings”, click “Environment Variables”.
      3. Under “User variables”, select the Path Variable, click “Edit…” > “New”. Type the path from step a + \bin.
  8. Run: rake db:create and rake db:migrate.
  9. Start the server: bin/rails server (on Windows: ruby bin\rails server).
  10. Go to: http://localhost:3000/.


To contribute, simply fork and then create a pull request.


Copyright © 2017 The PSU CS Beeminder Capstone Team

Originally made by:

This code is available under the "MIT License". Please see the file LICENSE in this distribution for license terms.