> For the complete documentation index, see [llms.txt](https://docs.digit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digit.org/complaints-management/cms-v2.11/deploy/customise/frontend/local-setup.md).

# Local Setup

DIGIT UI – CMS (Complaint Management)

## **Overview**

A **React App** built on top of **DIGIT UI Core** — India’s largest governance platform. The CMS UI lets citizens raise complaints and employees manage them. It uses the **Workbench module** to manage **Master Data (MDMS V2)** and **Localisation data**.

***

### **Project Structure (Simplified)**

```
graphqlCopyEditCitizen-Complaint-Resolution-System/
└── frontend/
    └── micro-ui/
        └── web/
            └── micro-ui-internals/
                ├── example/
                ├── node_modules/
                ├── packages/
                │   ├── css/        # Tailwind CSS config & styles
                │   ├── modules/
                │   │   ├── pgr/    # Public Grievance Redressal module (PGR forms/UI)
```

***

### **Tech Stack**

* **React** (UI framework)
* **React Hook Form** (form handling)
* **React Query** (API data fetching)
* **Tailwind CSS** (styling)
* **Webpack** (bundler)

***

## **External Dependencies**

<table><thead><tr><th width="364.4140625">Package</th><th>Source Repo</th><th>Branch</th></tr></thead><tbody><tr><td><code>@egovernments/digit-ui-libraries</code></td><td>digit-ui-libraries</td><td>develop</td></tr><tr><td><code>@egovernments/digit-ui-module-core</code></td><td>digit-frontend</td><td>develop</td></tr><tr><td><code>@egovernments/digit-ui-react-components</code></td><td>digit-frontend</td><td>develop</td></tr><tr><td><code>@egovernments/digit-ui-svg-components</code></td><td>digit-frontend</td><td>develop</td></tr><tr><td><code>@egovernments/digit-ui-module-utilities</code></td><td>digit-frontend</td><td>develop</td></tr><tr><td><code>@egovernments/digit-ui-components</code></td><td>digit-ui-libraries</td><td>develop</td></tr></tbody></table>

***

## **Pre-requisites**

* **Node.js** v14.18 (Use [nvm](https://github.com/nvm-sh/nvm) to manage versions)
* **Yarn** (preferred over npm)

Install Yarn if not available:

```bash
npm install -g yarn
```

Set Node version:

```bash
nvm install 14
nvm use 14
```

***

## **Steps**

#### **1. Clone the Repository**

```bash
git clone https://github.com/egovernments/Citizen-Complaint-Resolution-System.git
```

***

#### **2. Navigate to Project Directory**

```bash
cd frontend/micro-ui/web/micro-ui-internals
```

***

#### **3. Install Dependencies**

```bash
yarn install
```

***

#### **4. Configure Environment Variables**

Create `.env` inside:

```
micro-ui/web/micro-ui-internals/example/.env
```

**Required Variables:**

```
iniCopyEditREACT_APP_PROXY_API=<server-url>
REACT_APP_GLOBAL=<server-url>
REACT_APP_PROXY_ASSETS=<server-url>
REACT_APP_USER_TYPE=EMPLOYEE   # or CITIZEN
SKIP_PREFLIGHT_CHECK=true
```

***

#### **5. Start the Development Server**

```bash
yarn start
```

Access the app in your browser (usually `http://localhost:3000`).

***

## **📄 License**

Licensed under **MIT License** – free to use, modify, and distribute.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.digit.org/complaints-management/cms-v2.11/deploy/customise/frontend/local-setup.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
