Building the Project - gpdoud/ams-client GitHub Wiki
Building and running AMS
This page describes how to build and run the project in both development mode and in production mode. The project requires that SQL Server service is running.
Development mode
To run the back-end in development mode, open the solution file (*.sln) and make sure the configuration setting is set to DEBUG and select BUILD > BUILD SOLUTION. There should be no errors. Click the Start button to run the back-end in the browser (Chrome is preferred) using IIS Express.
To run the front-end in development mode, in the root project folder, start the dynamic build and run with:
start ng serve -o
This will start the Angular build, bundle, and run in a separate command window. The browser should open or a new tab will be opened to a url of http://localhost:4200 and the home page should display.
Note: it is strongly recommended you always open the developer tools (F12) when running the front-end and click on the console tab to see any messages and/or error that may occur
Production mode
To create the production build of the back-end, set the configuration setting to RELEASE and do a normal build. Where all the development builds reside in the ~/bin/debug folder, the production build will reside in the ~/bin/release folder.
To create a deployment package for easy installation into an IIS environment:
- Right-click on the project and click Publish
- Click on Folder
- Click Publish
The folder will contain files that can be used to install or upgrade with the production build.
To do a production build of the front-end, in the project root folder:
ng build -prod
This will create the production files in a folder called /dist.