{"id":20186089,"url":"https://github.com/leolanese/angular18-inmemorywebapimodule","last_synced_at":"2026-05-20T07:13:21.676Z","repository":{"id":261679819,"uuid":"885025172","full_name":"leolanese/Angular18-InMemoryWebApiModule","owner":"leolanese","description":"Angular18 InMemoryWebApiModule to mock data collections","archived":false,"fork":false,"pushed_at":"2025-04-13T15:39:20.000Z","size":143,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-26T16:09:23.139Z","etag":null,"topics":["angular","api-rest","inmemorywebapimodule","mockserver","testing","typescript"],"latest_commit_sha":null,"homepage":"","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/leolanese.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":"2024-11-07T20:21:04.000Z","updated_at":"2025-04-13T15:39:24.000Z","dependencies_parsed_at":"2024-11-07T21:27:53.354Z","dependency_job_id":null,"html_url":"https://github.com/leolanese/Angular18-InMemoryWebApiModule","commit_stats":null,"previous_names":["leolanese/angular18-inmemorywebapimodule"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leolanese/Angular18-InMemoryWebApiModule","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leolanese%2FAngular18-InMemoryWebApiModule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leolanese%2FAngular18-InMemoryWebApiModule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leolanese%2FAngular18-InMemoryWebApiModule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leolanese%2FAngular18-InMemoryWebApiModule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leolanese","download_url":"https://codeload.github.com/leolanese/Angular18-InMemoryWebApiModule/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leolanese%2FAngular18-InMemoryWebApiModule/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267335082,"owners_count":24070699,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"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":["angular","api-rest","inmemorywebapimodule","mockserver","testing","typescript"],"created_at":"2024-11-14T03:15:57.334Z","updated_at":"2026-05-20T07:13:21.643Z","avatar_url":"https://github.com/leolanese.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular18 InMemoryWebApiModule\n\n```js\nnpm install angular-in-memory-web-api --save-dev\n```\n\n\u003e InMemoryWebApiModule does provide a mock API by intercepting HTTP requests made by the Angular application.\n\n1 - `Interception of HTTP Requests`: It catches HTTP requests directed to your backend (like GET, POST, PUT, DELETE) and instead routes them to an in-memory database defined in your AppData class.\n\n2 - `Mock Data Response`: The AppData service implements InMemoryDbService and provides a createDb method, which returns a set of mock data collections (similar to tables in a Db). When a component makes an HTTP request, it retrieves data from these collections.\n\n3 - `API-like Behavior`: The module simulates a real API by supporting CRUD operations (Create, Read, Update, Delete), allowing you to test different scenarios in your app without needing a real server or database. You can specify options like delay to mimic network latency, adding realism to the development environment.\n\n## Setup\n\n```js\nnpm i angular-in-memory-web-api\n```\n\n```js\n// app.config.ts\n...\n    importProvidersFrom(\n      InMemoryWebApiModule.forRoot(AppData, { \n        delay: 100,\n        dataEncapsulation: false,\n        passThruUnknownUrl: true\n      })\n    )\n```\n\n\n---\n\nThis project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.2.9.\n\n## Development server\n\nRun `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.\n\n## Code scaffolding\n\nRun `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.\n\n## Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.\n\n## Further help\n\nTo get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.\n\n---\n\n### :100: \u003ci\u003eThanks!\u003c/i\u003e\n#### Now, don't be an stranger. Let's stay in touch!\n\n\u003ca href=\"https://github.com/leolanese\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n  \u003cimg src=\"https://scastiel.dev/api/image/leolanese?dark\u0026removeLink\" alt=\"leolanese’s GitHub image\" width=\"600\" height=\"314\" /\u003e\n\u003c/a\u003e\n\n##### :radio_button: Linkedin: \u003ca href=\"https://www.linkedin.com/in/leolanese/\" target=\"_blank\"\u003eLeoLanese\u003c/a\u003e\n##### :radio_button: Twitter: \u003ca href=\"https://twitter.com/LeoLanese\" target=\"_blank\"\u003e@LeoLanese\u003c/a\u003e\n##### :radio_button: DEV.to: \u003ca href=\"https://www.dev.to/leolanese\" target=\"_blank\"\u003eBlog\u003c/a\u003e\n##### :radio_button: Questions / Suggestion / Recommendation: developer@leolanese.com\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleolanese%2Fangular18-inmemorywebapimodule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleolanese%2Fangular18-inmemorywebapimodule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleolanese%2Fangular18-inmemorywebapimodule/lists"}