A privacy-first, open-source platform for knowledge management and collaboration. Download link: http://github.com/logseq/logseq/releases. roadmap: http://trello.com/b/8txSM12G/roadmap
 
 
 
 
 
 
Go to file
Tienson Qin 735e9ba70c refactor: sync immediately on switching browser tabs 2020-10-30 18:24:11 +08:00
resources/static fix(style): fix sidebar's code bgcolor in light theme 2020-10-29 12:18:54 +08:00
src refactor: sync immediately on switching browser tabs 2020-10-30 18:24:11 +08:00
.gitignore refactor: add publishing to ignore 2020-10-28 00:49:38 +08:00
.projectile Add contents 2020-07-21 15:50:13 +08:00
LICENSE.md Add license 2020-10-12 20:36:34 +08:00
deps.edn refactor: remove web 2020-10-27 23:19:40 +08:00
externs.js refactor: remove web 2020-10-27 23:19:40 +08:00
package.json refactor: yarn clean remove main.js 2020-10-28 00:56:19 +08:00
postcss.config.js refactor: remove web 2020-10-27 23:19:40 +08:00
readme.org fix(docs): compile javascript first and start the clojure server then 2020-10-30 12:31:32 +08:00
shadow-cljs.edn Add resources 2020-10-28 00:34:24 +08:00
styles.src.css refactor: remove web 2020-10-27 23:19:40 +08:00
tailwind.config.js refactor: remove web 2020-10-27 23:19:40 +08:00
tailwind.css refactor: remove web 2020-10-27 23:19:40 +08:00
yarn.lock fix(editor): properties save and clearing content when backspace 2020-10-28 20:17:42 +08:00

readme.org

Logseq

Logseq is A privacy-first, open-source platform for knowledge sharing and management.

Setup development environment

If you're on Windows, use the Windows setup.

2. Creating a GitHub app:

Follow this step: https://docs.github.com/en/free-pro-team@latest/developers/apps/creating-a-github-app. The User authorization callback URL should be: http://localhost:3000/auth/github

Remember to download the private-key.pem which will be used for the next step.

3. Add environment variables

  export ENVIRONMENT="dev"
  export JWT_SECRET="4fa183cf1d28460498b13330835e80ab"
  export COOKIE_SECRET="10a42ca724e34f4db6086a772d787030"
  export DATABASE_URL="postgres://localhost:5432/logseq"
  export GITHUB_APP2_ID="78728"
  export GITHUB_APP2_KEY="xxxxxxxxxxxxxxxxxxxx"
  export GITHUB_APP2_SECRET="xxxxxxxxxxxxxxxxxxxx"
  # Replace your-code-directory with yours
  export GITHUB_APP_PEM="/your-code-directory/your-app.private-key.pem"

4. Compile javascript

  cd web
  yarn
  yarn watch

5. Start the clojure server

  cd resources

  # 1. Download jar
  Go to https://github.com/logseq/logseq-internal/releases, download the logseq.jar and move it to the "resources" directory.

  # 2. run jar
  java -Duser.timezone=UTC -jar logseq.jar

6. Open the browser

Windows setup

1. Required software

Install clojure through scoop-clojure: https://github.com/littleli/scoop-clojure. You can also install Node.js, Yarn and PostgreSQL through scoop if you want to.

2. Setup PostgreSQL

Make sure you have PostgreSQL running. You can check if it's running with pg_ctl status and use pg_ctl start to start it up. You'll also need to make a logseq DB in PostgreSQL. Do that with createdb logseq.

3. Setup the server

Download this little script that sets up the environment variables and runs cmd-clj -A:dev. The GITHUB_APP_PEM variable in the script needs to be set with the correct directory for your system. Run that script in the repo and enter (go) into the interpreter.