-
Clone the repository using your preferred method:
# HTTPS git clone https://github.com/lumen-notes/lumen.git # SSH git clone git@github.com:lumen-notes/lumen.git # GitHub CLI gh repo clone lumen-notes/lumen
-
Generate a GitHub personal access token (classic) with
repo
,gist
, anduser:email
scopes, or a fine-grained personal access token scoped to a specific repository with the additional read-only email scope and gist, then add it to a.env.local
file in the root directory:VITE_GITHUB_PAT=<your token here>
-
Install the dependencies:
npm install
-
Start the development server:
npm run dev:netlify
-
Open the app at http://localhost:8888
graph
subgraph local[Local machine]
subgraph app.uselumen.com
state-machine([state machine])
isomorphic-git[isomorphic-git]
lightning-fs[lightning-fs]
end
local-storage[(localStorage)]
indexeddb[(IndexedDB)]
end
subgraph edge[Netlify Edge Functions]
cors-proxy(["/cors-proxy"])
end
github.com([github.com])
state-machine <--> isomorphic-git
state-machine <--> lightning-fs
state-machine <--> local-storage
isomorphic-git <--> lightning-fs
isomorphic-git <--> cors-proxy
lightning-fs <--> indexeddb
cors-proxy <--> github.com