This service deploys all the front-end components of the FFQ Project. All web pages in the website are defined, compiled and deployed through here.
To start this service, open a console window.
- Navigate to the ffq-questionnaire-web directory in your project folder.
- Run the command "npm install" to install all packages and dependencies.
- Make sure no processes are running on port 4200.
- Run the command "npm start" to start the service.
This section will describe the structure of the "src/app/" directory.
- /components/: includes angular components such as popup windows
- /models/: all object models, such as clinicians and parents and their attributes
- /pages/: all web pages for all portals
- /pipes/ : all pipes, usually used for search functions
- /services/: all services which return data from the database
- app-routing.module.ts: all URLs are defined and mapped to an angular component here
- app.module.ts: all components being used in the app are declared here
- Node v12 and npm v6 installed or docker images and container this app.
- Make sure to run
ng build --configuration production
to create a./dist
folder to use as the deployable artifact for a static website.
- Run
ng add @azure/ng-deploy
to add the azure deploy tools - Follow the command line steps to get azure connected
- Run
ng run ffq-questionnaire-web:deploy
when ready to deploy static website to azure storage - Command line will have the url of the site