Skip to content

qiisandi/sdms-fe

Repository files navigation

SDMS-FE

Node Angular Bower

This project contains the seperated front end code base of tr150_mev

Pre-requisites

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:

  1. AngularJS 1.7.8
  2. NodeJS 12.x

This project currently works with:

AngularJS Node JS

Setting up

Steps to follow

  • 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

Environment URL Configuration

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.

API Documentation

Generate JavaScript API documentation from source code comments:

npm run docs

This creates HTML documentation in doc/api/. To view it locally:

npx serve doc/api

Then open http://localhost:3000 in your browser.

Release

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.

alt text

Weblogic Deployment (Local)

  1. Application installation

  2. Follow the Environemnt URL Configuration step to create env.json

  3. Execute npm run setup from the root directory of the repository.

  4. Generate sdms warfile in build folder after executing the following necessary command,

    • Execute npm run war-prod for production deployment
    • Execute npm run war-stage for staging deployment
  5. Start weblogic

  6. Deploy sdms.war manually

Creating New Releases

  1. 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";
  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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published