I created a fake server using json-server and then copied the response from ABCis api into, that way I can play with api locally and not mess original copy
To run the server Run json-server --watch server/server.json
. The server runs on localhost:3000
, to view the data visit localhost:3000/todos
Considering the time frame for this project , Bootstrap is the best.
CRUD entails
- Create
- Read
- Update
- Delete
I created 3 components:
- Employee-create [Creates an employee]
- Employee-edit. [edits an empployee]
- Employee-list [Display list of employees]
components as the delete does not need a component and all components have routes
shared class,for the expected data and then used Observables.
- CREATE EMPLOYEE
- DELETE EMPLOYEE
- UPDATE EMPLOYEE
- READ LIST OF EMPLOYEES
Rest api was created to manage this in the shared folder
Thank you for your time
This project was generated with Angular CLI version 11.2.1.
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.
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
.
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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.