This project is reliant on the Underwriting Web API .net core application. To run it on your local machine start the project and it will be spun up as a dependency of the project.
Note: THIS WILL NOT RUN IN A DEVELOPMENT ENVIRONMENT AS IT STANDS.
You must configure the project to not load the spa
npm start if the evn.IsDevelopment, if you remove/comment out this code it will work on a dev server.
This occurs on line 110 of the Startup.cs file inside of the UnderwritingWeb API
Here is current working environment for this project.
_ _ ____ _ ___ / \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| / △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | | / ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | | /_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___| |___/ Angular CLI: 8.3.29 Node: 12.20.2 OS: win32 x64 Angular: 8.2.12 ... animations, common, compiler, core, forms, platform-browser ... platform-browser-dynamic, platform-server, router Package Version -------------------------------------------------------------------- @angular-devkit/architect 0.803.29 @angular-devkit/build-angular 0.803.29 @angular-devkit/build-optimizer 0.803.29 @angular-devkit/build-webpack 0.803.29 @angular-devkit/core 8.3.29 @angular-devkit/schematics 8.3.29 @angular/cli 8.3.29 @angular/language-service 8.2.14 @angular/material 8.2.3 @ngtools/webpack 8.3.29 @nguniversal/module-map-ngfactory-loader 8.1.1 @schematics/angular 8.3.29 @schematics/update 0.803.29 rxjs 6.6.6 typescript 3.5.3 webpack 4.39.2 node version 12.20.2 npm version 6.14.11
Open the UnderwritingWeb solution and run the project in visual studio, this will spin up a localhost server with this app. If you want to make changes on the front end I found that having it open in visual studio code will allow you to make changes on the fly without restarting your solution.
To regenerate documentation when changes are made or comments are added/modified you can run the following command.
npm install -g @compodoc/compodoc // if you don't have it installed compodoc -p tsconfig.doc.json
This will generate your documentation and then you can deploy it and overwrite the documentation on the dmz server.
NOTE: if you have a problem with code generation it is because compodoc can not handle enums inside of the Routes defined in app-routing.module.ts. Change the following code and it will generate.
from - const routes: Routes = [ to - const routes = [
ng generate component component-name to generate a new component. You can also use
ng generate directive|pipe|service|class|guard|interface|enum|module.
ng build to build the project. The build artifacts will be stored in the
dist/ directory. Use the
--prod flag for a production build.
ng test to execute the unit tests via Karma.
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 README.