Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Clone rainmaker from the remote repo:  
  2. Switch path to  \egov-web-app\web\rainmaker
    1. Run "npm yarn install"  → to install all required dependencies in rainmaker app
    2. Run "npm yarn run go" →  what it does? 
      1. It first builds CSS and sass files for all the modules.
      2. Transpiles all the packages present inside the dev-package folder to ES5 version and put them in lib folder inside packages.
      3. When all the transpiled packages are available in /packages/lib, Lerna works on soft-linking the dependencies for each module including citizen and employee package.
      4. Lerna goes inside all the packages mentioned in the lerna.json file and maps the dependencies required by them to their node-modules. Thus by soft-linking the dependencies and putting them in the respective node-modules, it is made sure that all dependencies are available to be used wherever required.
      5. In case of Mutex error do yarn run go until it gets successful , it happens in the first time installation due to weak internet connections
  3. After successful completion of above steps, The apps are ready to run.
  • For running apps: 
  1. Citizen app: "npm yarn run dev:citizen"
  2. Employee app: "npm yarn run dev:employee"
  3. Individual apps: move to /dev-packages/..." and run "npm yarn start"
  • Bundling of files is done by webpack. 

...