me-amit / custom-ngx-pagination

It is an angular app which supports normal CRUD features along with pagination feature to support more than 250 rows together. We have customized the pagination and allow the user to directly switch to a particular page and also give the user the option to display the no of rows that he wants to see by choosing the correct dropdown option.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ContactApp

This project was generated with Angular CLI version 9.1.1.

It is basically an angular web app for maintaining Contact Information. Things implemented in this project

  1. Ability to view all the contacts from a json file stored under the assets folder.
  2. Ability to add a new contact by giving all the mandatory details.
  3. Save Button validation while adding a new contact, where in most of the fields are mandatory and the status would be inactive by default
  4. Ability to edit an existing contact and choosing the status using the toggle button
  5. Ability to delete an existing contact from the directory
  6. Added pagination to the table to accomodate 250 rows together. By default, the user sees only 10 rows per page
  7. The user has the option switch to any particular page directly using the Dropdown option
  8. The user has the ability to switch back and forth using the next and previous icons
  9. The user is able to view page information like the start and end index of a particular page
  10. The user gets to choose the no of rows in a particular page using the dropdown option
  11. The user gets navigated back to the first page the moment we change the no of rows dropdown option
  12. Ability to filter the Contact Information by first name, last name, email, phone number or status
  13. Validation for Phone number as no text can be entered there.
  14. All the components in the web app are unit tested with code coverage over 100% and you can find the coverage report under coverage folder in the root directory

While creating this web app, the best software design practices and coding standards were used. I have segregated the components, filters, services, models for better folder structure.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README. "# custom-ngx-pagination"

About

It is an angular app which supports normal CRUD features along with pagination feature to support more than 250 rows together. We have customized the pagination and allow the user to directly switch to a particular page and also give the user the option to display the no of rows that he wants to see by choosing the correct dropdown option.


Languages

Language:TypeScript 63.8%Language:HTML 26.6%Language:JavaScript 5.2%Language:CSS 4.4%