Skip to content

oliverbarnes/old-participate-api

Repository files navigation

Code Climate Build Status

NOTE: This API is undergoing a rewrite in a separate repo. It's being ported over to Elixir

Please see the README on repo for the front-end app to learn more about the project in general.

Bootstrapping the Project

Ruby version and database

Install Ruby 2.2.2 if you don't have it yet

rvm install 2.2.2

(Or use whatever ruby version manager you prefer. There's a .ruby-version for the project that should work with any of them)

Install MongoDB if you don't have it yet as well and start it up.

brew install mongodb
mongod --config /usr/local/etc/mongod.conf --logpath log/mongo.log

Bundle install and run tests

Ensure that dependencies are installed.

bundle install

Next, create an application.yml file. You can use our example.

cp config/application.yml.example config/application.yml

Then, run guard and start your test suite.

guard

(Hit Enter/Return to get Guard to run the test suite after starting up)

For running the api with the ember front-end

rails s

Then startup the front-end app by following the instructions on its github repo.

Go to http://localhost:4200 on your browser.

Contributing

See the CONTRIBUTING guide.

About

old API backing Participate!, an app for democratic proposal-making

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published