For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

  1. 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"

\

  1. 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

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

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

Was this helpful?