# Sunbird-lern portal for DF

To test discussion forum application we have created a new angular application.

Follow the below steps to setup the lern-portal in your local.

### Prerequisite

1. Start the discussions-middleware.
2. If your middleware is pointed to local nodebb then run the below items. if not skip this step.
   1. Start redis db.
   2. Start local nodebb.

### Learn-portal setup

Clone the below repo.

```
>> git clone https://github.com/VenkatKadiveti/lern-portal.git
```

### How to run UI

#### Step 1

Run the command `yarn` under root folder to install the packages.

#### Step 2

Run the command `npm run dev` to start the ui.

### How to run server

#### Step 1

Go to server folder `cd server` and Run the command `yarn` to install packages.

#### Step 2

Run the command `npm run start` to start the server.

#### Step 3

Now go to browser and open [Lern-portal](http://localhost:3000/).


---

# 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://lern.sunbird.org/use/developer-guide/discussion-forum/developer-installation/installation-guide/sunbird-lern-portal-for-df.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.
