Skip to content

lifeonmarspt/sustainable-cities-api

This branch is 242 commits behind Vizzuality/sustainable-cities-api:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
David Inga
Jul 25, 2017
5637061 · Jul 25, 2017
Jul 25, 2017
Mar 14, 2017
Jul 20, 2017
Jul 19, 2017
Jul 25, 2017
Mar 14, 2017
Mar 16, 2017
Jul 18, 2017
Jul 20, 2017
Jul 20, 2017
Jul 20, 2017
Mar 14, 2017
Mar 14, 2017
Mar 14, 2017
Mar 14, 2017
Mar 14, 2017
Jun 23, 2017
Jul 20, 2017
Jul 19, 2017
Jul 19, 2017
Jul 25, 2017
Apr 20, 2017
May 5, 2017
Apr 27, 2017
Apr 26, 2017
Mar 14, 2017
Jul 20, 2017

Repository files navigation

Sustainable Cities API

Build Status Code Climate

DOCUMENTATION

API Documentation

USAGE

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.

NATIVELY

REQUIREMENTS

Just execute the script file in bin/setup

Depends on Sustainable Cities repository

or install the dependencies manually:

Install global dependencies:

gem install bundler

Install gems:

bundle install

Set up the database

cp config/database.yml.sample config/database.yml
cp env.sample .env

bundle exec rake db:create
bundle exec rake db:migrate

Load sample data:

bundle exec rake db:seed

Run application:

bin/rails s

USING DOCKER

REQUIREMENTS FOR DOCKER

If You are going to use containers, You will need:

EXECUTING

To setup the project on docker:

./service develop

To run the tests on docker:

./service test

TEST

To run the tests on docker:

./service test

Run rspec:

  bin/rspec

DEPLOYMENT

To deploy the API to staging environment, just execute: cap staging deploy

CONTRIBUTING

BEFORE CREATING A PULL REQUEST

Please check all of these points.

  1. Fork it!
  2. Create your feature branch: git checkout -b feature/my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin feature/my-new-feature
  5. Submit a pull request :D

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 99.8%
  • HTML 0.2%