Q1. What are the pre-requisites for setting up DIGIT?
i) Install Vs Code -
VS Code Extension -
ii) Install Node JS -
iii) Install Postman - Postman is the tool we use to hit and test the APIs exposed by various services that we have. To install postman, follow the following links -
Q2. How do we install Yarn?
Install Yarn -
npm install --global yarn
yarn --version
Q3. How do we add Globalconfig in DIGIT UI environment?
Local Environment: To enable it into local development we need to add the javascript code block of globalconfig.js into the index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<link rel="icon" href="https://cdn.jsdelivr.net/npm/@egovernments/digit-ui-css/img/browser-icon.png"/>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap" rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-css@1.4.111/dist/index.css"/>
<!-- <link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-css/dist/index.css"/> -->
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="theme-color" content="#00bcd1"/>
<title>mSeva</title>
<script src="https://path/to/public/s3/bucket/globalConfigs.js"></script>
</script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
Dev Environment: To enable it in the dev environment we need to add the javascript code block of telemetry into the
Path:- DIGIT-DevOps/deploy-as-code/helm/environments/dev.yam