Ruby on Rails server application that gathers data about the amount of time spent on the mobile device.
These instructions will get you a copy of the project up and running on your local machine for development purposes.
To run the Phone-Usage server on your local machine, you will need:
- Development was done on Ubuntu 18.4 and the following tutorials are made with that in mind
- Ruby 2.5.1 and Rails
- Postgres
execute steps 1 - 3
at step 3 create a superuser role named
dev
with passworddev
and a database namedphone-usage-server_development
$ sudo apt-get install libpq-dev
A step by step series of examples that tell you how to get a development env running:
- clone this repo and locate your terminal to phone-usage-server dir
$ git clone https://github.com/C0mpy/phone-usage-server $ cd ./phone-usage-server
- install project dependencies:
$ bundler install $ bundler update
- execute migrations and seed the data
$ rails db:seed
- start the server
$ rails server
Application is deployed to: https://phone-usage-server.herokuapp.com/ Deployment is executed automaticlly when pushing to the Github repo.
- Hat tip to igordejanovic for reviewing the code