Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Pluto is not a Planet
branch: master
Failed to load latest commit information.
build
public/static Change color scheme to purple
templates
.gitignore
.gitmodules
.godir
COPYING
LICENSE
Makefile
Procfile
README
README.markdown Add README (along with .markdown symlink for Github pretty-print)
feeds_list.txt
mongo.go
planet_item.go Add FirstLink method to an RSS item
server.go
views.go Scrape RSS feeds in the background

README.markdown

Pluto

Pluto is a blog aggregator written in Go, with Foundation styling to get you started. Pluto powers Planet-hackNY.

Configuration & Setup

You will need the following environment variables defined:

#Any value will do, as long as it is secret and difficult to predict
export COOKIE_SECRET=""

#Database credentials
export MONGODB_USERNAME=""
export MONGODB_PASSWORD=""
export MONGODB_URL=""
export MONGODB_DATABASE=""

If you are running the app on Heroku, run:

heroku config:set COOKIE_SECRET=$COOKIE_SECRET MONGODB_USERNAME=$MONGODB_USERNAME MONGODB_PASSWORD=$MONGODB_PASSWORD MONGODB_URL=$MONGODB_URL MONGODB_DATABASE=$MONGODB_DATABASE

which will copy the values from your current environment to use on the Heroku server.

If you are running mongodb locally (or if your mongodb instance isn't protected by a username/password, you can ommit the MONGODB_USERNAME and MONGODB_PASSWORD variables; however, you will need to delete the call to the Login method:

    err = mongodb_session.DB(MONGODB_DATABASE).Login(MONGODB_USERNAME, MONGODB_PASSWORD)

would then be replaced with

    err = mongodb_session.DB(MONGODB_DATABASE)

License

Copyright (C) 2012 Aditya Mukerjee

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of the author(s) shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from those author(s).

Something went wrong with that request. Please try again.