{"id":16077168,"url":"https://github.com/don-phdev/openflights","last_synced_at":"2026-04-12T02:35:31.526Z","repository":{"id":89578000,"uuid":"487952658","full_name":"Don-PhDev/openflights","owner":"Don-PhDev","description":"OpenFlights is a simple CRUD app built with Ruby on Rails and React using Webpacker","archived":false,"fork":false,"pushed_at":"2022-06-06T14:17:11.000Z","size":3322,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T05:05:23.216Z","etag":null,"topics":["react","ruby-on-rails","webpacker"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Don-PhDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2022-05-02T18:39:53.000Z","updated_at":"2022-05-06T11:33:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ededda7-4798-4c20-805b-d4f024be865b","html_url":"https://github.com/Don-PhDev/openflights","commit_stats":{"total_commits":190,"total_committers":3,"mean_commits":"63.333333333333336","dds":"0.14210526315789473","last_synced_commit":"cfc930e2a78770257fa9972c0dfc64150ce39c37"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Don-PhDev/openflights","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Don-PhDev%2Fopenflights","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Don-PhDev%2Fopenflights/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Don-PhDev%2Fopenflights/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Don-PhDev%2Fopenflights/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Don-PhDev","download_url":"https://codeload.github.com/Don-PhDev/openflights/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Don-PhDev%2Fopenflights/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31702580,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T21:17:31.016Z","status":"online","status_checked_at":"2026-04-12T02:00:06.763Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["react","ruby-on-rails","webpacker"],"created_at":"2024-10-09T10:01:39.447Z","updated_at":"2026-04-12T02:35:31.503Z","avatar_url":"https://github.com/Don-PhDev.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## OpenFlights \n### A flight reviews app built with Ruby on Rails and React.js\n\nThis app is intended to be a simple example of a CRUD app built with **Ruby on Rails** and **React.js** using **Webpacker**.\n\n---\n![OpenFlights Home](https://github.com/Don-PhDev/open-flights/blob/master/app/assets/images/index-demo.png?raw=true)\n---\n![OpenFlights Show](https://github.com/Don-PhDev/open-flights/blob/master/app/assets/images/show-demo.png?raw=true)\n\n\n---\n\nThis app uses:\n\n* Ruby version: `2.7.4`\n* Rails version: `6.0.3.4`\n* Database: `postgresql`\n* React version: `16.12.0`\n* React Hooks API\n* React Context API\n\n## Running it locally\n- run `bundle exec rails db:prepare`\n- run `npm install` or `yarn install`\n- run `bundle exec rails s`\n- in another tab run `./bin/webpack-dev-server` (optional) \n- in another tab run `sidekiq` (optional, but necessary for things like password reset emails)\n- navigate to `http://localhost:3000`\n\n## Environment Variables\nIf you want functionality like password reset emails to work locally, you'll need to set the following environment variables in `config/application.yml` with your own unique values:\n```\nROOT_URL: http://localhost:3000\nSENDGRID_API_KEY: xxxxxxxxxxxxxx\nSENDGRID_USERNAME: xxxxxxxxxxxxxx\nSENDGRID_PASSWORD: xxxxxxxxxxxxxx\nDEFAULT_FROM_EMAIL: you@example.com\n```\n\n## Routes\n```shell\n             Prefix Verb   URI Pattern                           Controller#Action\n               root GET    /                                     pages#index\n    api_v1_airlines GET    /api/v1/airlines(.:format)            api/v1/airlines#index\n                    POST   /api/v1/airlines(.:format)            api/v1/airlines#create\n new_api_v1_airline GET    /api/v1/airlines/new(.:format)        api/v1/airlines#new\nedit_api_v1_airline GET    /api/v1/airlines/:slug/edit(.:format) api/v1/airlines#edit\n     api_v1_airline GET    /api/v1/airlines/:slug(.:format)      api/v1/airlines#show\n                    PATCH  /api/v1/airlines/:slug(.:format)      api/v1/airlines#update\n                    PUT    /api/v1/airlines/:slug(.:format)      api/v1/airlines#update\n                    DELETE /api/v1/airlines/:slug(.:format)      api/v1/airlines#destroy\n     api_v1_reviews POST   /api/v1/reviews(.:format)             api/v1/reviews#create\n      api_v1_review DELETE /api/v1/reviews/:id(.:format)         api/v1/reviews#destroy\n                    GET    /*path(.:format)                      pages#index\n```\n\n---\n\n## Api V2 (Graphql)\n\n**Get Airlines#index**\n```\nquery Airlines {\n  airlines {\n    id\n    name\n    imageUrl\n    slug\n    averageScore\n    reviews {\n      id\n      title\n      description\n      score\n    }\n  }\n}\n```\n\n**Get Airlines#show**\n```\nquery Airline {\n  airline(slug:) {\n    id\n    name\n    imageUrl\n    slug\n    averageScore\n    reviews {\n      id\n      title\n      description\n      score\n    }\n  }\n}\n```\n\n**Create Review**\n```\nmutation {\n  createReview(\n    title: \"test\",\n    description: \"test\",\n    score: 1,\n    airlineId: 1\n  ) {\n    id\n    title\n    description\n    score\n    airlineId\n    error\n    message\n  }\n}\n```\n\n**Destroy Review**\n```\nmutation {\n  destroyReview(id:) {\n    message\n    error\n  }\n}\n```\n---\n\nThis README is still being written\n\n---\n\n## License\n```\nCopyright (c) 2022 Don-PhDev\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdon-phdev%2Fopenflights","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdon-phdev%2Fopenflights","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdon-phdev%2Fopenflights/lists"}