# Setting up Anuvaad on your own

Follow these steps to set up the Anuvaad Web Application on your local machine:

## Frontend

1. **Clone the Repository:**

   ```bash
   git clone https://github.com/project-anuvaad/anuvaad.git

   ```
2. **Navigate to the Project Directory:**

   ```bash
   cd anuvaad/anuvaad-fe/anuvaad-webapp-webapp
   ```
3. **Install Dependencies:**

   ```bash
   npm install
   ```

   or

   ```bash
   yarn install
   ```
4. **Environment Variables:** Create a `.env` file in the root directory of the project and configure the necessary environment variables. You can use the `.env.example` file as a reference.
5. **Start the Development Server:**

   ```bash
   npm start
   ```

   or

   ```bash
   yarn start
   ```
6. **Access the Application:** Once the development server is started, you can access the application by navigating to <http://localhost:3000> in your web browser.

## Additional Commands

* **Build the Application:**

  ```bash
  npm run build
  ```

  or

  ```bash
  yarn build
  ```
* **Run Tests:**

  ```bash
  npm test
  ```

  or

  ```bash
  yarn test
  ```

## Backend

**General Guidelines:**

1. Clone the repo and go to the module specific directory.
2. Run `pip3 install -r requirements.txt`.
3. Make necessary changes to config files with respect to MongoDB and Kafka.
4. Run `python3 src/app.py`.

Alternatively, modules could be run by building and running Docker images. Make sure configs and ports are configured as per your local setup.

* **Build Docker Image:**

  ```bash
  docker build -t <service-name> .
  ```
* **Run Docker Container:**

  ```bash
  docker run -r <service-name>
  ```

**Note**: Apart from this, the Docker images running in the user's environment could be found [here](https://hub.docker.com/u/anuvaadio).

```
```


---

# Agent Instructions: 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:

```
GET https://anuvaad.sunbird.org/learn/setting-up.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
