{"id":18614751,"url":"https://github.com/andrewjbateman/ionic-angular-infoapp","last_synced_at":"2025-04-11T00:30:52.125Z","repository":{"id":41796900,"uuid":"176706275","full_name":"AndrewJBateman/ionic-angular-infoapp","owner":"AndrewJBateman","description":":clipboard: App to search for info from an API and display it using the Ionic framework. Currently using a movie database API to develop the app.","archived":false,"fork":false,"pushed_at":"2024-05-12T15:49:47.000Z","size":3684,"stargazers_count":13,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T06:51:15.419Z","etag":null,"topics":["android-device","angular","angular17","api-rest","html5","ionic","ionic-angular","movie-database-api","open-movie-database","scss-styles","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/AndrewJBateman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-03-20T10:09:10.000Z","updated_at":"2024-06-02T15:46:42.000Z","dependencies_parsed_at":"2024-05-12T16:43:45.351Z","dependency_job_id":"8365d9d4-3af8-4118-8762-09ee942151d9","html_url":"https://github.com/AndrewJBateman/ionic-angular-infoapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fionic-angular-infoapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fionic-angular-infoapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fionic-angular-infoapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fionic-angular-infoapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/ionic-angular-infoapp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322228,"owners_count":21084333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["android-device","angular","angular17","api-rest","html5","ionic","ionic-angular","movie-database-api","open-movie-database","scss-styles","typescript"],"created_at":"2024-11-07T03:26:48.671Z","updated_at":"2025-04-11T00:30:49.590Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","readme":"# :zap: Ionic Angular InfoApp\n\n* App to search for info from an API and display it using the [Ionic framework](https://ionicframework.com/docs).\n* Uses a [movie database API](http://www.omdbapi.com/) to develop the app.\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/ionic-angular-infoapp?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/ionic-angular-infoapp?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/ionic-angular-infoapp?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/ionic-angular-infoapp?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Ionic Angular InfoApp](#zap-ionic-angular-infoapp)\n  * [:page\\_facing\\_up: Table of contents](#page_facing_up-table-of-contents)\n  * [:books: General info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal\\_strength: Technologies](#signal_strength-technologies)\n  * [:floppy\\_disk: Setup](#floppy_disk-setup)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:cool: Features](#cool-features)\n  * [:clipboard: Status \\\u0026 To-do list](#clipboard-status--to-do-list)\n  * [:clap: Inspiration](#clap-inspiration)\n  * [:file\\_folder: License](#file_folder-license)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n* An active search bar enables the user to search for movies, with a list of matches appearing below. Each returned movie card can be clicked on to see more details.\n* The API searches the [The Open Movie Database](http://www.omdbapi.com/) for search matches.\n\n## :camera: Screenshots\n\n![Home Page](./img/info-search.png)\n![Home Page](./img/detail.png)\n\n## :signal_strength: Technologies\n\n* [Ionic/angular v8](https://www.npmjs.com/package/@ionic/angular)\n* [Angular v17](https://angular.io/) dev platform\n* [OMDb API](http://www.omdbapi.com/) Open Movie Database, a RESTful web service\n* Ionic DevApp, to allow app to run on an iOS or Android device.\n\n## :floppy_disk: Setup\n\n* Get yourself an API key from the [The Open Movie Database](https://www.omdbapi.com/) - it's free :-)\n* Add your movie database access credentials to `environment.ts` for dev. work\n* `npm i`\n* To start the server on _localhost://8100_ type: 'ionic serve'\n* The Ionic DevApp was installed on an Android device from the Google Play app store.\n\n## :computer: Code Examples\n\n* functions to search for info and retrieve more detailed info.\n\n```typescript\n// Get data from the Omdb Api\n  // map the result to return only the results \"Search\" that we need\n  // @param {string} title Search Term\n  // @param {SearchType} type movie, series, episode or empty\n  // @returns Observable with the search results\n  searchData(title: string, type: SearchType): Observable\u003cOmdbSearchResult\u003e {\n    return this.http\n      .get\u003cObservable\u003cOmdbSearchResult\u003e\u003e(\n        `${this.url}?\u0026apikey=${this.apiKey}\u0026s=${encodeURI(title)}\u0026type=${type}`\n      )\n      .pipe(\n        map((results) =\u003e {\n          console.log(\"RAW: \", results);\n          return results[\"Search\"];\n        })\n      );\n  }\n  // Get detailed information using the \"i\" (not \"id\") parameter\n  // @param {string} id imdbID to retrieve information\n  // @returns Observable with detailed information\n  getDetails(id: string): Observable\u003cany\u003e {\n    return this.http\n      .get\u003cObservable\u003cOmdbDetailResponse\u003e\u003e(\n        `${this.url}?i=${id}\u0026plot=full\u0026apikey=${this.apiKey}`\n      ).pipe(tap(res =\u003e console.log(\"response: \", res)))\n  }\n```\n\n## :cool: Features\n\n* Working search bar\n* Ion icons look cool although I have made no attempt to optimise this app for a compact build file, otherwise I would replace with svg files\n* API response interface models added\n* API search function code commenting is good - I have Simon Grimm to thank for that fine example\n\n## :clipboard: Status \u0026 To-do list\n\n* Status: Working.\n* To-do: Nothing\n\n## :clap: Inspiration\n\n* Project inspired by [Simon Grimms's 'How to Build Your First Ionic 4 App with API Calls'](https://medium.freecodecamp.org/how-to-build-your-first-ionic-4-app-with-api-calls-f6ea747dc17a).\n\n## :file_folder: License\n\n* This project is licensed under the terms of the MIT license.\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: `gomezbateman@gmail.com`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fionic-angular-infoapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fionic-angular-infoapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fionic-angular-infoapp/lists"}