The design is to implement two projects .
- Premium-Demo:- Web APi project which gives the occupations lookup and also calculate premium based on age, cover and occupation. Swagger documentation is provided for api testing without front end.
- SPA:- Single page Angular app with a reactive form for required fields. Material form controls are used for quick development .
To start project :-
- Clone / download the github repository.
- Open the solution in visual studio and set both premium-demo and SPA as startup projects
- Goto SPA folder from commandline and do an npm install
- Rebuild the solution and start. Two .net core servers should run (one for api and other for SPA ).
- Go to localhost:5001 . Enter the form fields , when all mandatory fields are entered the premium is displayed below
The project requires .Net core 3.1 and lates version of angular cli installed