> For the complete documentation index, see [llms.txt](https://lern.sunbird.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lern.sunbird.org/use/developer-guide/discussion-forum/developer-installation/installation-guide/sunbird-lern-portal-for-df.md).

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