This project was generated with Angular CLI version 1.4.4.
This is a multi module project. These are the modules available:
- App Module: This is the mail module in which application is loading
- Core Module: This is a core module which is the backbone of the application and includes services which drive the application
- Landing Page Module: This module contains pre login section of the module
- Post login Module: This module sets the base of application once user logs in
- Feature modules
- Compliance
- Assets
- Omni Search
- Admin
- Tools
- Shared Module: This module contans all components, services, constant files which are shared across the application
All feature modules are configurable to be shown or hidden on need basis.
Application can be configured to suit your needs, These are the types of configurations available here:
- Auth type: By default, if no values are set in auth configuration, a login screen will ask for username and password, if you have added PacMan to your azure ad, you can provide 'clientId' and 'tenant' values in configuration to enable SSO
- Feature modules visibility: Each feature module can be configured to be displayed or hidden on need basis.
- Cloud domains: Production, staging and dev environment domains can be configured here
- PacMan Issues: This configuration is required if you want your users to create jira ticket for the issues reported by PacBot and send those issues to respective teams
All the configurations can be done at this file. Check the details about each configuration value here
You need to set up your development environment before you can do anything.
Install Node.js® and npm if they are not already on your machine.
Verify that you are running at least node 6.9.x and npm 3.x.x by running node -v and npm -v in a terminal/console window. Older versions produce errors, but newer versions are fine.
Then install the Angular CLI globally. You can install angular cli using npm:
npm install -g @angular/cli
Then install Bower globally. You can install Bower using npm:
npm install -g bower
Great, your base setup is done!
If you are doing this setup, menas you have already cloned the repository.
Go to webapp
folder from your terminal/console and run the following commands to install node and bower modules
npm install
bower install
Yay! you are good to start the application.
Before we proceed to running the application, one last check, look at the application configuration and ensure required configurations have values, optional configuration can be skipped for now.
Check the details about each configuration value here
Let's start the application!
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.
To change the environment: ng serve --env={{environment}}
environment
in above coomand could take dev/stg/prod
. These values belong to different environment files:
dev
corresponds to environment.ts
stg
corresponds to environment.stg.ts
prod
corresponds to environment.prod.ts
Run ng build --prod --aot=false
to build the project. The build artifacts will be stored in the dist/
directory.
To version your app, you can run the below commands
npm run build-prod-patch // For deployment any patches, bug fixes, refactoring
npm run build-prod-minor // For any new features, without breaking backward compatibility
npm run build-prod-major // For any changes or updates without supporting backward incompatibility
Run ng e2e
to execute the end-to-end tests via Protractor.
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
.