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
- Host: GitHub
- URL: https://github.com/benjajorquera/missingdevicesmap
- Owner: benjajorquera
- License: mit
- Created: 2024-11-11T03:56:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-11T04:15:50.000Z (over 1 year ago)
- Last Synced: 2025-03-01T13:14:10.859Z (over 1 year ago)
- Topics: bundle, devices, google-maps-api, react, ruby, ruby-on-rails
- Language: Ruby
- Homepage:
- Size: 197 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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````.