- Created small POC for implementing AG Grid. This application show data of all employees present in database in tabular form.
- Employee details can be add, edit and delete.
- In this application use custom cell render to show edit and delete button.
- Filter operation can be perform on cells using AG Grid.
- Backend: JSON server is use as a backend;
For Using json server:
- Installation: npm install -g json-server
- Create a db.json file with some data
- In db.json data must be in format like this(According to this application): { "employee": [{ }], }
- For running: json-server --watch db.json
- Frontend: Angular
- @angular/cli version 13.3.11
- @angular/material version 13.3.9
- typescript version 4.6.4
AG Grid community version 29.3.4
- For installing ag grid: npm i ag-grid-community npm i ag-grid-angular
- Ng- Bootstrap: version 12.1.2
- For adding ng-bootstrap: ng add @ng-bootstrap/ng-bootstrap
- Angular Materials: version 13.3.9
- For adding angular materials: ng add @angular/material
-
Clone from git: git clone https://github.com/kritika-singh-sengar/employee-insights.git
-
For running JSON server:
- cd db
- json-server --watch db.json
-
For running frontend application:
- cd employee-insights
- For default port: ng serve -o
- For custom port: ng serve --port 4300 -o
-
Application will started running on following url:
http://localhost:4200/