mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 14:14:55 +00:00
0.0.1-10
Logseq
Logseq is a local-first, non-linear, outliner notebook for organizing and sharing your personal knowledge base.
Website
Setup development environment
1. Requirements
2. Add environment variables
export ENVIRONMENT="dev"
export GITHUB_APP_KEY="ecaceddfdb7158c4e384"
export GITHUB_APP_SECRET="3e337d07f61585576362c95dcb8cd98756e43f65"
export GITHUB_REDIRECT_URI="http://localhost:3000/auth/github"
export JWT_SECRET="4fa183cf1d28460498b13330835e80ad"
export COOKIE_SECRET="10a42ca724e34f4db6086a772d787034"
export DATABASE_URL="postgres://localhost:5432/logseq"
3. Start the clojure server
Using in Emacs
1. C-c M-j and select "clojure-cli" 2. input "(go)" in the clojure repl
Using in Cli
1. clj -A:dev 2. input "(go)" in the clojure repl
Using in Calva (Visual Studio Code )
1. Issue the command Start a REPL server and Connect: ctrl+alt+c ctrl+alt+j
2. Select clojure-cli
3. input "(go)" in the clojure repl
4. Compile javascript
cd web
yarn
yarn watch
open http://localhost:3000
Notes
- The clojure deps should be synced between the two files:
project.cljanddeps.edn. We need theproject.cljbecause it's used for dokku deployment. - To use github push, comment this line https://github.com/tiensonqin/logseq/blob/master/web/src/main/frontend/handler.cljs#L751
Description
Languages
Clojure
69.9%
JavaScript
12.3%
CSS
6.7%
TypeScript
5.5%
Swift
2.6%
Other
2.9%