pluto

command module
v0.0.0-...-db4523f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2014 License: MIT Imports: 17 Imported by: 0

README

Pluto
=============
Pluto is a blog aggregator written in Go, with Foundation styling to get you started. Pluto powers [Planet-hackNY](https://github.com/ChimeraCoder/Planet-hackNY).

Configuration & Setup
-----------------------


You will need the following environment variables defined:

````shell
#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:

````shell
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:

````go
	err = mongodb_session.DB(MONGODB_DATABASE).Login(MONGODB_USERNAME, MONGODB_PASSWORD)
````
would then be replaced with 

````go
	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).

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL