{"id":18614815,"url":"https://github.com/andrewjbateman/angular-movie-database","last_synced_at":"2025-04-11T00:30:57.394Z","repository":{"id":37094815,"uuid":"191598549","full_name":"AndrewJBateman/angular-movie-database","owner":"AndrewJBateman","description":":clipboard: Angular app to create movie database using rxjs and observables","archived":false,"fork":false,"pushed_at":"2023-02-03T04:54:19.000Z","size":2887,"stargazers_count":26,"open_issues_count":3,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T06:51:13.046Z","etag":null,"topics":["angular","angular15","database","json","json-server","movie-database","observables","rxjs","rxjs7","typescript","typescript4"],"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-06-12T15:33:20.000Z","updated_at":"2024-10-21T20:37:43.000Z","dependencies_parsed_at":"2023-02-15T12:00:54.590Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/angular-movie-database","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%2Fangular-movie-database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-movie-database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-movie-database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fangular-movie-database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/angular-movie-database/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":["angular","angular15","database","json","json-server","movie-database","observables","rxjs","rxjs7","typescript","typescript4"],"created_at":"2024-11-07T03:27:06.587Z","updated_at":"2025-04-11T00:30:52.735Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","readme":"# :zap: Angular Movie Database\n\n* App using Angular to create a movie database. The home screen displays a list of movie images. Each image redirects to a movie detail page with movie details listed using data-binding.\n* Tutorial code from [Paul Halliday](https://www.youtube.com/channel/UCYJ9O6X1oFt7YGXpfRwrcWg) see [:clap: Inspiration](#clap-inspiration) below. Updated to latest Angular version.\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/angular-movie-database?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/angular-movie-database?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/angular-movie-database?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/angular-movie-database?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Angular Movie Database](#zap-angular-movie-database)\n  * [:page_facing_up: Table of contents](#pagefacingup-table-of-contents)\n  * [:books: General info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal_strength: Technologies](#signalstrength-technologies)\n  * [:floppy_disk: Setup](#floppydisk-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  * [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n* App routing module to load movie home screen. Differential loading used with 2nd routing module.\n* Movie-routing module for: list of movies (MovieListComponent), form to add movie (AddMovieComponent) and a movie detail page (MovieDetailComponent).\n* Dummy backend used to store json movie data.\n\n## :camera: Screenshots\n\n![Example screenshot](./img/movie-list.png).\n![Example screenshot](./img/json-data.png).\n![Example screenshot](./img/detail-page.png).\n\n## :signal_strength: Technologies\n\n* [Angular v15](https://angular.io/)\n* [RxJS Library v7](https://angular.io/guide/rx-library) used to [subscribe](http://reactivex.io/documentation/operators/subscribe.html) to the API data [observable](http://reactivex.io/documentation/observable.html).\n* [json-server v0.17.1](https://www.npmjs.com/package/json-server) used with the `db.json` file to get a fake API.\n\n## :floppy_disk: Setup\n\n* Install dependencies using `npm i` then run `ng serve` for a dev server. No API key required.\n* Navigate to `http://localhost:4200/`. The app does automatically reload if you change any of the source files.\n* Open a second terminal and run `npm run api` for a local JSON server. Navigate to `http://localhost:3000/`. The json file will update if a movie is added from the front-end 'add movie' page.\n\n## :computer: Code Examples\n\n* `movie-list.component.html` extract showing HTML to load movies asynchronously with a loading image until they are shown.\n\n```html\n\u003c!--if there are movies then show them in the DOM using Angular async pipe--\u003e\n\u003cul *ngIf=\"movies$ | async as movies; else loading\" [@listAnimation]=\"movies\"\u003e\n  \u003cli *ngFor=\"let movie of movies\"\u003e\n    \u003ca [routerLink]=\"movie.id\"\u003e\n      \u003cimg [src]=\"movie.image\" /\u003e\n    \u003c/a\u003e\n  \u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cng-template #loading\u003e\n  \u003cul [@listAnimation]=\"loadingMovies.length\"\u003e\n    \u003cli\n      *ngFor=\"let movie of loadingMovies\"\n      [@listAnimation]=\"loadingMovies.length\"\n    \u003e\n      \u003cimg src=\"/assets/movie.png\" /\u003e\n    \u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/ng-template\u003e\n```\n\n## :cool: Features\n\n* [Angular Reactive Forms](https://angular.io/guide/reactive-forms) (model-driven forms) are used instead of the html template-driven method.\n* BrowserAnimations used to add some animation to the movie details loading.\n* Working backend on port 3000 was very easy to setup and run.\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working.\n* To-Do: Add a nav back button on detail page.\n\n## :clap: Inspiration\n\n* [Paul Halliday Youtube video: FREE Angular 8 Course - Learn Angular 8, RxJS, HttpClient, Smart/Presentational Components](https://www.youtube.com/watch?v=OcwwahqeASw)\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@yahoo.com\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-movie-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fangular-movie-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fangular-movie-database/lists"}