This project was generated with Angular CLI version 7.0.0.
Angular CLI: 7.3.10
Node: 12.22.12
Npm: 6.14.16
OS: darwin x64
Angular: 7.2.16
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
@angular-devkit/architect 0.13.10
@angular-devkit/build-angular 0.13.10
@angular-devkit/build-optimizer 0.13.10
@angular-devkit/build-webpack 0.13.10
@angular-devkit/core 7.3.10
@angular-devkit/schematics 7.3.10
@angular/cdk 7.3.2
@angular/cli 7.3.10
@angular/material 7.3.2
@ngtools/webpack 7.3.10
@schematics/angular 7.3.10
@schematics/update 0.13.10
rxjs 6.3.3
typescript 3.2.4
webpack 4.29.0
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app 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. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
- Fork repo to personal account.
- Navigate to settings of forked repo.
- Go to pages in the sidebar.
- Source should be gh-pages branch and the root folder.
- Checkout angularMigration branch of forked repo.
- Run npm i angular-cli-ghpages --save-dev (Only if you dont already have it. This will install globally)
- Run an npm install to get node modules if not done yet.
- Make changes to the webapp and test locally.
- Run ng build --prod --optimization=false --base-href "https://YOURusername.github.io/MicrobeTrace/"
- Run npx ngh --dir dist/Microbetrace
- Updates will be visible in 5-10 minutes.
IMPORTANT before building dist folder - If adding new assets that are loaded via filepath in the app (.ie src="assets/images/Logo.png"), follow these steps:
- Add the asset filepath to the "assets" array in the angular.json file.
- When referencing the asset in the code, modify the filepath to use the appRootUrl() function, which depending on whether the app is running locally or online, generates the correct path to the root where the assets are located. For example, when loading a newly imported image, I should make the "src" value [src]="appRootUrl() + 'assets/images/Logo.png'", instead of src="assets/images/Logo.png".
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.