> For the complete documentation index, see [llms.txt](https://docs.lightningbounties.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lightningbounties.com/docs/getting-started/solving-a-bounty/working-on-opensource-frontend-lb-next.md).

# Working on Opensource Frontend: lb-next

## Quickstart for developing on lb-next

*Repo located here:* [*https://github.com/Lightning-Bounties/lb-next/*](https://github.com/Lightning-Bounties/lb-next/)

#### Instructions for connecting local frontend to remote backend

*We don't want to click "sign in with github" on localhost, but instead add the jwt token directly to simulate signing in.*

1. In `.env.local` set:
   1. make this edit, don't forget http**s**

      `NEXT_PUBLIC_API_URL=https://app.lightningbounties.com`
   2. after reloading the page you should see the same bounties on the feed
2. Get the `accessToken` from app.lightningbounties.com
   1. Go to <https://app.lightningbounties.com>
   2. Open chrome developer tools, go to Application tab, go to Local storage.
   3. Find `accessToken` and sign-in with github on the browser.
   4. Copy the value of accessToken, it should begin with `Bearer eyJhbGc...`
3. Set `accessToken` on localhost:3000
   1. On your browser where you are viewing the local repo running on the next dev server, open dev tools to the Local storage, find an accessToken key or add it.
   2. Paste the value of the token into local storage (including the `Bearer` prefix).
   3. Reload the page on localhost:3000, and you should be signed in under your app.lightningbounties.com user.

#### Video of Setup

{% file src="/files/kQ9UkRxgNC9J6UMlzdzc" %}

Or visit: <https://4191743023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgvH1HLwrajw9XplSBFfy%2Fuploads%2FiHh8RbltxAwaS7x9H0wy%2Fset-jwt-localhost-1.mp4?alt=media&token=99e8108e-a337-4532-bdd3-010577c112be>

<figure><img src="https://4191743023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgvH1HLwrajw9XplSBFfy%2Fuploads%2Fkh8iERAN35vS5Wm1lxvx%2Fimage.png?alt=media&amp;token=c030ac06-43ec-4190-a7ec-4746bddf2cf7" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lightningbounties.com/docs/getting-started/solving-a-bounty/working-on-opensource-frontend-lb-next.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
