Start by checking out the project from github
git clone https://github.com/Vizzuality/sustainable_cities.git
cd sustainable_cities
You can either run the application natively, or inside a docker container.
- Ruby version: 2.4.0
- PostgreSQL 9.4+ How to install
Just execute the script file in bin/setup
Depends on Sustainable Cities repository
or install the dependencies manually:
gem install bundler
bundle install
cp config/database.yml.sample config/database.yml
cp env.sample .env
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:seed
bin/rails s
If You are going to use containers, You will need:
To setup the project on docker:
./service develop
To run the tests on docker:
./service test
To run the tests on docker:
./service test
Run rspec:
bin/rspec
To deploy the API to staging environment, just execute: cap staging deploy
Please check all of these points.
- Fork it!
- Create your feature branch:
git checkout -b feature/my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin feature/my-new-feature
- Submit a pull request :D