API for Tvarkau Vilnių apps. Manages problems reported by Vilnius citizens.
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
- Install docker
- Install docker-compose
- Install Homebrew
- Install rbenv
- Install ruby 2.4.3
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
- If this is your first run:
- Start server using
rails s
Open http://localhost:3000/api/reports
to get latest reports
bundle exec rspec spec
ormake test
- Android: https://github.com/vilnius/tvarkau-vilniu
- iOS: https://github.com/vilnius/tvarkau-vilniu-ios
- Join us on Slack
#tvarkau-vilniu
! For an automated invitation click the big Slack button at http://codeforvilnius.lt - Feel free to create pull requests or issues
- Contribution guide coming soon
- Check out for more at http://codeforvilnius.lt/
Note: This is a work in-progress