Working on Opensource Frontend: lb-next
Quickstart for developing on lb-next
Repo located here: 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.
In
.env.local
set:make this edit, don't forget https
NEXT_PUBLIC_API_URL=https://app.lightningbounties.com
after reloading the page you should see the same bounties on the feed
Get the
accessToken
from app.lightningbounties.comGo to https://app.lightningbounties.com
Open chrome developer tools, go to Application tab, go to Local storage.
Find
accessToken
and sign-in with github on the browser.Copy the value of accessToken, it should begin with
Bearer eyJhbGc...
Set
accessToken
on localhost:3000On 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.
Paste the value of the token into local storage (including the
Bearer
prefix).Reload the page on localhost:3000, and you should be signed in under your app.lightningbounties.com user.
Video of Setup
Last updated