Build a webbapplication that calculates bonuses for a small consultant company. The bonus is based on the company's net result and is calculated individually for every consultant based on their individual hourly input. The bonus is also based on a lojalty factor depending on number of years the consultant have worked for the company
- Startingpage - Information and navigation to the other pages
- Consultants - List of consultants with CRUD functionality
- Bonus calculation - Calculates the different bonuses for each consultant
Starting page with navigation to the other two pages
CRUD functionality. The constultants name and employment date should be saved in a database
Functionality to calculate all consultants individual bonuses. You should be able to add each consultants work hours, the companies net result.
- start the JSON server with the command:
- JSON server installation instructions
- npm install -g json-server
- json-server --watch db.json
- go to: http://localhost:3000/posts
- Open a terminal and run the program
- npm start
- open your browser and go to: http://localhost:3000/ (or whatever port you are using)
This project was generated with Angular CLI version 13.3.2.
Run ng serve for a dev server. Navigate to http://localhost:4200/. The application 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.
Run ng test to execute the unit tests via Karma.
Run 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.
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.
To run the json-server type the command: json-server --watch db.jason
it will run on http://localhost:3000/
Command to create service: ng g s shared/api
Command to create component: ng g c