- Angular app to fetch API data and display it in a table using RxJS observables
- Create, Read, Update & Delete (CRUD) operations can be carried out on a table of data fetched from the JSONPlaceholder API
- Note: to open web links in a new window use: ctrl+click on link
- Displays table of API data with CRUD actions using the JSONPlaceholder API
- Angular folder structure best practises followed with CRUD service and data pipe in their own folders.
- Bootstrap form used with search filter
- Angular v16 Javascript framework
- Bootstrap v5
- RxJS v7 Reactive Extensions Library for JavaScript
- JSONPlaceholder API
- Install dependencies using
npm i
- Run
ng serve
for a dev server. Frontend will open athttp://localhost:4200/
- refreshes on code changes
- Run
ng test
to run Jasmine unit tests via Karma - Run
ng e2e
to execute the end-to-end tests via Protractor.
data.service.ts
function to get data arry from API
getData(): Observable<Data[]> {
return this.http.get(this.baseUrl).pipe(
map((response: any) => {
return response;
})
);
}
- Can be connected to a backend database
- Status: Working but some erors
- To-Do: Move add & edit data code to their own components with navigation, connect database. Remove [ngModel] and fix 2x filter errors that appear in localhost console. Add form types
- This project is licensed under the terms of the MIT license.
- Repo created by ABateman, email:
gomezbateman@yahoo.com