{"id":16969857,"url":"https://github.com/webmasterdevlin/angular-enterprise","last_synced_at":"2025-04-05T16:26:04.342Z","repository":{"id":40793227,"uuid":"245627755","full_name":"webmasterdevlin/angular-enterprise","owner":"webmasterdevlin","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-06T02:38:10.000Z","size":3647,"stargazers_count":2,"open_issues_count":13,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-11T13:22:32.589Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/webmasterdevlin.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}},"created_at":"2020-03-07T12:21:06.000Z","updated_at":"2021-12-11T21:19:35.000Z","dependencies_parsed_at":"2023-02-05T03:31:29.937Z","dependency_job_id":null,"html_url":"https://github.com/webmasterdevlin/angular-enterprise","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/webmasterdevlin%2Fangular-enterprise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmasterdevlin%2Fangular-enterprise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmasterdevlin%2Fangular-enterprise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmasterdevlin%2Fangular-enterprise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webmasterdevlin","download_url":"https://codeload.github.com/webmasterdevlin/angular-enterprise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247363579,"owners_count":20926977,"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":[],"created_at":"2024-10-14T00:26:40.892Z","updated_at":"2025-04-05T16:26:04.313Z","avatar_url":"https://github.com/webmasterdevlin.png","language":"TypeScript","readme":"# Steps\n\n- ng new my-app\n- cd my-app\n\n## Pick your UI library or UI framework\n\n- ng bootstrap\n- angular material\n- prime ng\n\n## Cheat Sheet\n\n- https://www.digitalocean.com/community/tutorials/angular-angular-cli-reference\n\n## Chrome Extension\n\n- https://chrome.google.com/webstore/detail/angular-devtools/ienfalfjdbdpebioblfackkekamfmbnh\n\n## Create pages and routers\n\n- npm i -D prettier\n- create a home page\n\n```bash\nng g m pages/home\n```\n\n- create a module for the hero feature's code splitting ./src/features/hero/hero.module.ts\n\n```bash\nng g m features/hero\n```\n\n- create a module for the villain feature's code splitting ./src/features/villain/villain.module.ts\n\n```bash\nng g m features/villain\n```\n\n- create a page ./src/features/hero/containers/heroes/heroes.component.ts and say heroes works\n\n```bash\nng g c features/hero/containers/heroes\n```\n\n- create a page ./src/features/villain/containers/villains/villains.component.ts and say villains works\n\n```bash\nng g c features/villain/containers/villains\n```\n\n- create a module, app-routing.module.ts, to register the pages\n- import the routing module inside the app.module.ts\n- run the application and navigate to different pages using the URL field of the browser\n- run the application and navigate to different pages using the URL field of the browser\n\n## Create navigation bar\n\n- create a component, nav-bar/nav-bar.component.ts, to display the navigation bar\n- Add links/menus for different pages in the NavigationBar\n- run the application and try to navigate using the menus\n- create styling for the navigation bar\n\n## Core\n\n- set up the core module\n- set up the generic http service using rxjs\n- import the core module in the app.module.ts\n\n## Model/Schema\n\n- create features/hero/hero.model.ts\n- create features/villain/hero.model.ts\n- create other models if needed\n\n## Set up json-server and concurrently\n\n- npm i -D json-server concurrently\n- create ./src/json-server/db.json and ./src/json-server/routes.json\n- add proxy.conf.json in ths src folder\n- update the scripts\n\n## Render Heroes and Villains\n\n- create the properties namely endpoint, heroes, and isLoading as the local states of the heroes and villains components\n- inject the HttpClientRxJSService in the constructor\n- create a method to fetch the heroes and villains\n- insert the fetch method to the ngOnInit hook\n- run the application with json-server\n- check the dev tools network tab to see the response\n- render the heroes and villains using the \\*ngFor directive\n\n## Navigate to hero detail and villain detail\n\n- inject the Router in the constructor\n- create a method, goToHeroDetail, in heroes component\n- create a method, goToVillainDetail in villains component\n- use the goToHeroDetail method in the click event of the Detail buttons of heroes and villains pages html\n- in the hero-detail and villain-detail pages, inject the ActivatedRoute\n- create a method, getHero and getVillain in the hero-detail and villain-detail components\n\n## Delete a hero and villain\n\n- create a method, removeHero and removeVillain in the heroes and villains components\n- use the methods in the click event of the delete buttons of heroes and villains components html\n\n## Create a form\n\n- create a shared module\n\n```bash\nng g m shared\n```\n\n- create a reusable form component, shared/components/form/form.component.ts\n- use @Input decorators to pass the form to the form component\n- use @Output decorator to emit an event\n\n## Add a hero and villain\n\n- create properties namely itemForm and isOpen in the heroes and villains components\n- inject the FormBuilder in the constructor of the heroes and villains components\n- create a method formBuilderInit for itemForm initialization\n- create a method, toggle and onSave in the heroes and villains components\n- use the reusable form component in the heroes and villains components html\n\n## Update a hero and villain\n\n- create properties namely editingTracker and editForm in the heroes and villains components\n- add editedForm in the formBuilderInit method\n- create onUpdate method in the heroes and villains components\n- use another reusable form component in the heroes and villains components html for the update form\n- use the tracking property and the \\*ngIf directive to display the update form if editing is same as id\n- use the edit button's click event to assign id to editingTracker and toggle the form\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmasterdevlin%2Fangular-enterprise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebmasterdevlin%2Fangular-enterprise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmasterdevlin%2Fangular-enterprise/lists"}