An open API service indexing awesome lists of open source software.

https://github.com/benjajorquera/missingdevicesmap

Lost device app built with React, Ruby on Rails and Google Map Api
https://github.com/benjajorquera/missingdevicesmap

bundle devices google-maps-api react ruby ruby-on-rails

Last synced: 2 months ago
JSON representation

Lost device app built with React, Ruby on Rails and Google Map Api

Awesome Lists containing this project

README

          

# Devices Challenge

You must have ruby, node and npm installed on your system.

Install the dependencies with ````bundle install````. If necessary you can change the ruby version in the ````Gemfile```` If you get some kind of error like dependency error you can run ````bundle update```` or ````bundle install --with development````.

The default database is located in ````db/development.sqlite3```` Perform a migration with ````rake db:migrate```` or you can reset the database with ````rake db:migrate:reset```` You can seed the database with ````ruby db/seed.rb```` which deletes the “Devices” table and creates it again, populating it with the data it fetches from the api url and api key delivered in a ````env```` in the root of the project.

It runs the project (backend) with ````bundle exec rails server```` which is raised on port 3000.

For the client, inside the client folder run ````npm install```` to install the libraries, then ````npm run start```` then press the “y” key to run on port 3001. You can configure a google maps api key in a ````.env````.