...
- Clone rainmaker from the remote repo:
- git clone
- Switch path to \egov-web-app\web\rainmaker
- Run "npm yarn install" → to install all required dependencies in rainmaker app
- Run "npm yarn run go" → what it does?
- It first builds CSS and sass files for all the modules.
- Transpiles all the packages present inside the dev-package folder to ES5 version and put them in lib folder inside packages.
- 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.
- 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.
- 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
- After successful completion of above steps, The apps are ready to run.
- For running apps:
- Citizen app: "npm yarn run dev:citizen"
- Employee app: "npm yarn run dev:employee"
- Individual apps: move to /dev-packages/..." and run "npm yarn start"
- Bundling of files is done by webpack.
...