You are on page 1of 1

Crna Tacka is iOS app that informs end user about near danger on the road.

It s
upports sound notification of near danger location, overview and reporting of da
nger locations. Quick reporting is supported via Today widget integration.
http://crnatacka.herokuapp.com/ exposes REST api that provides data in JSON form
at that is going to be used to access the applications back end.
The web api is created by following instructions that could be found at followin
g links:
1. https://devcenter.heroku.com/articles/getting-started-ios-development-sinatra
-cedar
2. https://samuelstern.wordpress.com/2012/11/28/making-a-simple-database-drivenwebsite-with-sinatra-and-heroku/
3. http://www.xplatform.rocks/2014/04/28/create-a-lightweight-rest-service-using
-sinatra/
Note: the instructions about adding database support in the second link are not
working so use following steps to achieve that goal:
1. add posgressql add-on to the target application on heroku
Go the heroku.com, login, go to the target application and add the add-on
2. add Rackfile and config/environments.rb files
3. modify Gemfile and api.rb files by adding required dependencies
4. install homebrew package manager:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/
install)"
5. instal posgresql
brew install posgresql
6. install the bundle locally
ARCHFLAGS="-arch x86_64" bundle install
7. push to heroku