{"id":15584413,"url":"https://github.com/thiagohrcosta/imdb_search","last_synced_at":"2026-04-02T01:02:54.803Z","repository":{"id":104848122,"uuid":"364120253","full_name":"thiagohrcosta/imdb_search","owner":"thiagohrcosta","description":"A small project where user can search for a movie in our database. The user can create, edit and delete a movie and also search on our database using Pg_Search gem.","archived":false,"fork":false,"pushed_at":"2021-05-18T18:42:59.000Z","size":179,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T08:45:18.833Z","etag":null,"topics":["bootstrap4","css3","html5","postgresql","rails","ruby"],"latest_commit_sha":null,"homepage":"","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/thiagohrcosta.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":"2021-05-04T02:41:09.000Z","updated_at":"2021-05-18T18:43:01.000Z","dependencies_parsed_at":"2023-07-04T22:31:25.483Z","dependency_job_id":null,"html_url":"https://github.com/thiagohrcosta/imdb_search","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thiagohrcosta/imdb_search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagohrcosta%2Fimdb_search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagohrcosta%2Fimdb_search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagohrcosta%2Fimdb_search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagohrcosta%2Fimdb_search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thiagohrcosta","download_url":"https://codeload.github.com/thiagohrcosta/imdb_search/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thiagohrcosta%2Fimdb_search/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: 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":["bootstrap4","css3","html5","postgresql","rails","ruby"],"created_at":"2024-10-02T20:41:02.925Z","updated_at":"2026-04-02T01:02:54.122Z","avatar_url":"https://github.com/thiagohrcosta.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n# IMDB Search\n\n![main banner](https://res.cloudinary.com/dloadb2bx/image/upload/v1620151377/imdb1_ekazm3.png)\n\n\n## Technologies\nThis project was created with:\n\n - [Ruby](https://www.ruby-lang.org/pt/)\n - [Rails](https://rubygems.org/gems/rails)\n - [ERB](https://ruby-doc.org/stdlib-2.7.1/libdoc/erb/rdoc/ERB.html) (for template system with Ruby)\n - [Pry-byebug](https://rubygems.org/gems/pry-byebug/versions/3.4.0?locale=pt-BR) (for debugging)\n - [Bootstrap](https://getbootstrap.com/)\n - [Pg_Search](https://rubygems.org/gems/pg_search/versions/1.0.5?locale=pt-BR)\n - [Postgresql](https://www.postgresql.org/)\n\n## Typing parcial words\n![map](https://res.cloudinary.com/dloadb2bx/image/upload/v1620151467/imdb2_nle0at.png)\n\n     def index\n        if params[:query]\n          @movies = Movie.search_by_title_and_synopsis(params[:query])\n        else\n          @movies = Movie.all\n        end\n      end\n\n\n Adding the code above and below, users can find movies by typing only parcials words of a title.\n\n    class Movie \u003c ApplicationRecord\n      belongs_to :director\n\n      include PgSearch\n      pg_search_scope :search_by_title_and_synopsis,\n        against: [:title, :synopsis],\n        using: {\n          tsearch: { prefix: true }\n        }\n\n      pg_search_scope :global_search,\n        against: [ :title, :synopsis ],\n        associated_against: {\n          director: [ :first_name, :last_name ]\n        },\n        using: {\n          tsearch: { prefix: true }\n        }\n\n      multisearchable against: [ :title, :synopsis ]\n\n    end\n\n![gif](https://res.cloudinary.com/dloadb2bx/image/upload/v1621362443/imdb4_fnq7jz.gif)\n\n## CSS Grid\n\nTo display flats on index page was used CSS grid:\n![CSS Grid](https://res.cloudinary.com/dloadb2bx/image/upload/v1620151468/imdb3_jw6pxr.png)\n   ```\n.box-flex{\n  display: grid;\n  grid-template-columns: 1fr 1fr 1fr;\n  grid-gap: 16px;\n  margin: 10px;\n}\n\n.box-flat{\n  margin: 10px 0;\n  background-color:  #7868e6;\n  border: 1px solid #E8E8E8;\n  box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);\n}\n```\n\n## How to run this project\nDownload or clone it. . Then run in the main folder the command `rails server`. If needed, run `bundle install` to check if all gems are correctly installed. Then open the project on `localhost:3000/movies`\n\n\n## What user can do?\nAs user you can manipulate all **CRUD** operations like:\n\n - Insert a movie on database;\n - Search for a movie by title;\n\n## Development routine\n\n **April 4**\n\n     - Project created;\n     - Adding bootstrap, jquery, popper;\n     - Adding font-awesome, simple_form;\n     - Models and Controllers created;\n     - Database created;\n     - Seeds some content on database;\n     - Adding routes;\n     - Adding Pg_Search gem;\n     - Adding a migration to insert poster on movies;\n     - Adding CSS to main page.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagohrcosta%2Fimdb_search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiagohrcosta%2Fimdb_search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagohrcosta%2Fimdb_search/lists"}