> 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/platform/guides/developer-guide/flutter-mobile-app-ui-developer-guide/setup-development-environment/run-application.md).

# Run Application

## Overview

Once the development environment setup is completed, we have to run the application locally. This document provides steps on how to run the works\_shg\_app on a local device.

## Steps

1. Clone the repo <https://github.com/egovernments/DIGIT-Works>

`git clone https://github.com/egovernments/DIGIT-Works.git`

2. To run the application in the local environment, add the `.env` file in the root folder of the project (`frontend/works_shg_app`)-

**Sample .env config:**

`BASE_URL='https://works-dev.digit.org/'`

`MDMS_API_PATH='egov-mds-service/v1/_search'`

`GLOBAL_ASSETS='https://works-dev.digit.org/works-dev-asset/worksGlobalConfig.json'`

`ENV_NAME="DEV"`

![](/files/61y3nGKugprA2oDcrlk1)\\

3. Run the below commands in your terminal from the root of the project (frontend/works\_shg\_app)

**flutter clean**: To clean the build cache.

**flutter pub get**: To install the dependencies packages

<figure><img src="https://lh3.googleusercontent.com/SHrZwG_c2Vn1-bkZ-3exFhlQXb4IkoIY51DPH_UWHmuJ46wPOCaOe3TdAcvmZ4GbzhJMuagpOCt-LdqTwCRFyKJMGGQYTuJsz3jyamSW0iT_K76909l1mo0nTYRc2roKa7O6pDAK_ZYKyVlXbrwE7t0" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh3.googleusercontent.com/dhkc5EZMRB6vrTv4AWh6hoi_23ucWOKDTMke3yPBhf_IxX0LegcejIcHxFD6x85LrNB94dj3VkkA6tsHUFT8uCYI8EZce9zfFESUXp5NJ4zhQLcqGPIQFflSYEQiuSmVHS2ceRbW8SXdLvxU-WO2zqw" alt=""><figcaption></figcaption></figure>

4. Enable the desired device or browser to run the application using the command -\
   **flutter run**: To start the application

<figure><img src="https://lh5.googleusercontent.com/l37Ter4BROECfKSXZ2-GMf6PeAolByl-JddJRvcvxFSIGDB0oPaPbpPlaSrKnUIhavpaGgrafHTU3PWKTcsAUPF4z95y1IG4v_OkakNt8MdJre1Rsl8qOlQLUJkft7Vup_HsTB33ArFzjST_Qqqqqks" alt=""><figcaption></figcaption></figure>

5. Access the Flutter development tools for debugging purposes from the link in the terminal.

<figure><img src="https://lh6.googleusercontent.com/qGIR_8duLahPvljlOBLJF9LVyZjSDreye6QganNQGMAQigP4m8K2GbnPfCmCRrFeIakfgywAJ1vTHlutpZN24ElseB3V9yelV9wQE5015gaYK9l9SygvJuh-9RmqlS5d9ioUiRZE5Th5FmoC_5L6k74" alt=""><figcaption></figcaption></figure>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.digit.org/platform/guides/developer-guide/flutter-mobile-app-ui-developer-guide/setup-development-environment/run-application.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
