If you want to run the application locally, follow these steps:
- Make sure you have yarn installed
- Clone or fork this repository
- Add the following line to the
/etc/hosts
file:::1 local.youryearincode.com
(this makeslocal.youryearincode.com
point to localhost) - Create a new Github OAuth app by going to your Settings > Developer settings > OAuth Apps > New OAuth App
- Set the redirect URL to
local.youryearincode.com:5173/auth
, this will make Github redirect to that URL after the user has logged in
- Set the redirect URL to
- Copy the client ID and secret to some place safe
- Replace the
githubClientID
value atsrc/routes/+page.svelte:78
with your new client ID value - Comment out the
url
variable atsrc/lib/github/exchange_github_oauth_token_for_access_token.ts:8
and uncomment lines 10 to 12 - Set your
githubClientID
andgithubClientSecret
values - Start the app by running
yarn dev
, and navigate tolocal.youryearincode.com:5173
- Use the app as normal, and enjoy!