Skip to content

ARCHIVED: A free and open source platform to run campaigns for social change.

License

Notifications You must be signed in to change notification settings

MayOneUS/victorykit

 
 

Repository files navigation

VictoryKit is a free and open source platform to run campaigns for social change.

build status

Dependencies

On a Mac, you'll want to install:

$ brew install redis postgresql

You may already have a version of Postgres installed, in which case you'll need to remove it with:

$ brew unlink postgresql
$ brew install postgresql

To check out the code:

$ git clone git@github.com:victorykit/victorykit.git

To confirm you have the appropriate requirements:

$ cd victorykit
$ ./script/bootstrap

You may need to ensure you have qt libraries installed for webkit. On ubuntu, you may need:

sudo apt-get install qt5-default libqt5webkit5-dev qtdeclarative5-dev build-essential

On Mac, install Qt with brew install qt.

Setting up & starting server

Install the required version of ruby specified in Gemfile (2.0.0 as of this writing) by using RVM or rbenv.

Install bundler:

$ gem install bundler

Make sure gems are up to date:

$ bundle

Make sure Postgres and Redis are running. If you installed them with Homebrew, brew info [postgres|redis] will tell you how to run them.

Make sure the database exists and is migrated. Note: db:seeds is out of date.

$ cp config/database.yml.example config/database.yml
$ rake db:create
$ rake db:migrate

Make sure the tests pass:

$ rake

Settings.yml was discontinued. You'll need to load the settings in it into your db. open up consule then run the following.

$ rails console
> yml = YAML.load(IO.read('config/settings.yml'))
> data_dotted_keys = Hash[  yml.map{|parent,hash| hash.map{|k,v| [[parent, k].join('.'), v] } }.flatten(1) ]
> settings = AppSettings.instance
> settings.data = data_dotted_keys
> settings.save!

Run the app locally

$ rails server

Alternatively, you can use Foreman:

$ foreman start -f Procfile.dev -p 3000

About

ARCHIVED: A free and open source platform to run campaigns for social change.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 86.4%
  • JavaScript 11.6%
  • CSS 1.8%
  • Shell 0.2%