GithubHelp home page GithubHelp logo

viet-nguyen / loomio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from loomio/loomio

0.0 1.0 0.0 13.12 MB

Loomio is an open-source web application that helps groups make better decisions together.

Home Page: www.loomio.org

License: GNU Affero General Public License v3.0

loomio's Introduction

Welcome to Loomio! Code Climate Build Status Dependency Status

Loomio is a free and open-source web application that helps groups make better decisions together.

Installation

Install ImageMagick

You can install ImageMagick with the following commands for Mac or Linux.

Mac

  $ sudo port install ImageMagick

Linux

  $ sudo apt-get install imagemagick libmagick9-dev

Ubuntu 12.04

  $ sudo apt-get install libmagickwand-dev

Set up the database (and other little bits)

  $ cd /dir/to/loomio/
  $ bundle install
  $ cp config/database.example.yml config/database.yml
  $ cp .example-env .env
  $ bundle exec rake db:create
  $ bundle exec rake db:schema:load
  $ bundle exec rake db:schema:load RAILS_ENV=test
  $ bundle exec rake db:seed

Start the server

First start your postgres server (if it's not already running). Consult postgres documentation if you're not sure how to do this.

Then start the Rails server:

  $ cd /dir/to/loomio/
  $ foreman start

You can now see Loomio on your computer at http:localhost:3000

Create a user

You'll need to create a Loomio user account on your machine that you can use to interact with the site. Right now, the only way to do this is through the Rails console:

  $ cd /dir/to/loomio/
  $ rails console

Once inside the console, run the following command to generate a user:

  > User.create(name: "Furry", email: "[email protected]", password: "password")

Now you should be able to visit http://localhost:3000 and login as the user above and start playing with the site.

You'll probably want to create several different users so that you can test the site out properly. (Try using separate browsers if you want to login with two users at the same time)

Configure for production server (e.g. Heroku)

If you're trying to install Loomio on an actual server (as in, not just for development on your local machine), you'll need to do a few things differently.

First, you need to make sure you're running a stable release. Have a look at the list of Loomio stable releases and make sure your server is using the latest version. Do not use master on your production server -- it is untested.

Second, make sure you have set up the following environment variables:

SECRET_COOKIE_TOKEN=1234567890 (replace with a random string of alphanumeric characters, at least 30 chars long)
AWS_ACCESS_KEY_ID=your-key-here (you'll need to set up an AWS S3 account for hosting user uploads. ie user images)
AWS_SECRET_ACCESS_KE=your-access-key
AWS_UPLOADS_BUCKET=loomio-uploads (you'll need to create a bucket with this name on your S3 account)
CANONICAL_HOST=www.yourloomiosite.com (the web domain for your loomio server)
SENDGRID_USERNAME=your-sendgrid-username (we use SendGrid for sending emails, which you'll need to create an account for.
                                          if you'd rather not use sendgrid, you'll need to edit production.rb)
SENDGRID_PASSWORD=your-sendgrid-password
[email protected] (any errors that occur on your loomio instance will be sent to this email address)

If you're using Heroku, read here about how to set these environment variables. If you're not using Heroku, edit the .env file in the root of your app directory (unconfirmed whether or not this actually works).

Contribute

If you'd like to contribute to the project, check out Contributing to Loomio.

Also, before you submit a pull-request, please sign our CLA:

http://goo.gl/YfXNU

It ensures that the copyright will always stay on an OSI or FSF certified license. It was automatically generated using harmony agreements. If you're interested, here's the discussion that we had to decide on the license and CLA:

http://www.loomio.org/discussions/248?proposal=476

License

GNU Affero General Public License (AGPL). Copyright (c) 2012 Loomio Limited

loomio's People

Contributors

skyriverbend avatar aaronthornton00 avatar jamesmccann avatar robguthrie avatar tixpaul avatar drew1080 avatar nimser avatar allansideas avatar timothyjohn2015 avatar mmcgahan avatar joshuavial avatar jadehopepunk avatar tigerwnz avatar mixmix avatar mhjb avatar rtacconi avatar sametheridge avatar jameswatling avatar thegreenterraces avatar hsalmon avatar mjlemmon avatar devendram avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.