This project contains the seperated front end code base of tr150_mev
Project will be using
- Git with Github for version control
- Redmine for project management and issue tracking
- Windows / MacOS / Linux operating systems
The following software is required to work with the repository.
Development:
- AngularJS 1.7.8
- NodeJS 12.x
This project currently works with:
-
Clone from repository
-
Install NodeJS
sudo apt-get install nodejs -
Install npm
sudo apt-get install npm -
Install Node:-
npm install node -
Install Bower:-
npm install bower -
Create Symbolic link:-
sudo ln -s /usr/bin/nodejs /usr/bin/node
IMPORTANT : Goto config/env.example.json and create config/env.json for Deveopment usage.
config/env.json file contains the end URLs for different environments. The following end URLs will be changed according to the different environment
- basePath
- apiBaseUrl
- mapUrlDay
For Staging and Production, this step is handled by Jenkins, never upload the env.json.
Generate JavaScript API documentation from source code comments:
npm run docsThis creates HTML documentation in doc/api/. To view it locally:
npx serve doc/apiThen open http://localhost:3000 in your browser.
| ENV | PROCESS | BRANCH NAME |
|---|---|---|
| AIAS | on release create | dev |
| DC DEV | on release create | dc-dev |
| DC TEST | on release create | dc-test |
| DC PROD | on release create | dc-prod |
| DC DR | on release create | dc-dr |
| DC DR Rehearsal | on release create | dc-dr |
CI CD process on release will be fired to prepare the build for different environment. The branches are mentioed above for which environment, which branch needs to be used.
-
Application installation
-
Follow the Environemnt URL Configuration step to create
env.json -
Execute
npm run setupfrom the root directory of the repository. -
Generate sdms warfile in build folder after executing the following necessary command,
- Execute
npm run war-prodfor production deployment - Execute
npm run war-stagefor staging deployment
- Execute
-
Start weblogic
-
Deploy sdms.war manually
- We are maintaining the application version in semantic way. Need to update the version into the following files -
- VERSION
- app/index.html - Update the version like
SDMS.appVersion = "1.2.1";- Warfile will be generated with version name, it will fetch the version from VERSION file and the warfile will be named as sdms-VERSION.war. Ex: sdms-1.2.1.war
