{"id":22790055,"url":"https://github.com/miusarname2/ruby_testfrogmii","last_synced_at":"2026-05-07T11:33:53.137Z","repository":{"id":232246958,"uuid":"783002142","full_name":"miusarname2/Ruby_TestFrogmii","owner":"miusarname2","description":"A short technical test of Frogmi","archived":false,"fork":false,"pushed_at":"2024-04-27T14:07:07.000Z","size":230,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T16:46:46.252Z","etag":null,"topics":["rails","react","ruby","ruby-on-rails"],"latest_commit_sha":null,"homepage":"https://ruby-testfrogmii.onrender.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miusarname2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-06T16:58:54.000Z","updated_at":"2024-04-27T14:19:49.000Z","dependencies_parsed_at":"2024-04-08T21:18:14.453Z","dependency_job_id":"d74696db-4c17-4bf5-8813-4d6920d47bf5","html_url":"https://github.com/miusarname2/Ruby_TestFrogmii","commit_stats":null,"previous_names":["miusarname2/ruby_testfrogmii"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/miusarname2/Ruby_TestFrogmii","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miusarname2%2FRuby_TestFrogmii","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miusarname2%2FRuby_TestFrogmii/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miusarname2%2FRuby_TestFrogmii/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miusarname2%2FRuby_TestFrogmii/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miusarname2","download_url":"https://codeload.github.com/miusarname2/Ruby_TestFrogmii/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miusarname2%2FRuby_TestFrogmii/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32735209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rails","react","ruby","ruby-on-rails"],"created_at":"2024-12-12T02:17:20.567Z","updated_at":"2026-05-07T11:33:53.121Z","avatar_url":"https://github.com/miusarname2.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Technical Challenge - Seismic Data Application\n\nHello Oscar Mauricio! Welcome to the technical challenge for our application. Please submit your solution by April 15, 2024.\n\n## Objectives\n- Develop an application in Ruby or a Ruby-based framework that includes a Task for obtaining and persisting seismic data and an API exposing two endpoints for external client consumption.\n- Develop a simple HTML5 and JavaScript webpage to query the API endpoints. Bonus points for using EmberJS, React, AngularJS, or VueJS frameworks.\n\n## Getting Started\n1. Ensure you have Ruby and the necessary dependencies installed on your system.\n2. Clone this repository to your local machine.\n3. Run migrations to set up the database:\n   ```bash\n   rails db:migrate\n   ```\n4. Start the application server:\n   ```bash\n   rails server\n   ```\n\n## Backend Development\n### 1. Obtaining and Persisting Data\nDevelop a Task to obtain seismic data from the USGS site (earthquake.usgs.gov) in GeoJSON format. Persist the following data in the database:\n- `id`\n- `properties.mag`\n- `properties.place`\n- `properties.time`\n- `properties.url`\n- `properties.tsunami`\n- `properties.magType`\n- `properties.title`\n- `geometry.coordinates[0]` (longitude)\n- `geometry.coordinates[1]` (latitude)\n\nEnsure data validation and uniqueness when running the Task.\n\n### 2. REST API Endpoints\nDevelop two endpoints:\n#### 2.1 GET List of Features\n- Expose data in the specified format.\n- Allow filtering by `mag_type`, `page`, and `per_page` parameters.\n\n#### 2.2 POST Create a Comment\n- Create a comment related to a feature based on the payload.\n- Validate the payload and persist each comment.\n\n## API Usage\nTo access the API endpoints:\n- GET features: `http://localhost:3000/earthquakes.json`\n- POST comments: `http://127.0.0.1:3000/comments.json`\n  - Body JSON format: \n    ```json\n    {\n      \"body\": \"This is a comment\",\n      \"feature_id\": 2\n    }\n    ```\n\n## Frontend Access\n- Homepage: `http://localhost:3000/` or `/`\n- Create a Comment: `http://localhost:3000/comments/new` or `/comments/new`\n- Filter Features: `http://localhost:3000/earthquakes/1` or `/earthquakes/1`\n\nThe frontend for this application was developed in React and is located in the \"earthquake-front\" branch.\n\nThank you for participating! We look forward to reviewing your solution.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiusarname2%2Fruby_testfrogmii","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiusarname2%2Fruby_testfrogmii","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiusarname2%2Fruby_testfrogmii/lists"}