Skip to content

vilnius/tvarkau-vilniu-ms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tvarkau Vilnių backend

Build Status Join us on Slack

API for Tvarkau Vilnių apps. Manages problems reported by Vilnius citizens.

API specification

Getting started

Setting up development environment

Option 1: vagrant

This automatically creates and provisions ubuntu 16.04 based box with needed dev tools. Tested on: OSX Sierra and Windows 10.

Pre-requisites:

  • Vagrant
  • VirtualBox 5.1.14

(Note: at the moment of writing, latest (5.1.16) has a regression issue)

$ vagrant plugin install vagrant-vbguest
$ vagrant up

Login into the dev box:

$ vagrant ssh

Option 2: native (OSX)

Running app

Using docker:

$ docker-compose up

Or manually:

  • gem install bundler
  • Run DB docker-compose up -d db
  • bundle install
  • Ensure database migrations are up to date
    • If this is your first run: rake db:setup, rake db:seed
    • Every other time rake db:migrate
  • Start server using rails s

Open http://localhost:3000/api/reports to get latest reports

Running tests

  • bundle exec rspec spec or make test

Related projects:

Contribute

Note: This is a work in-progress

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •