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 55a75ae332
Merge pull request #216 from logseq/refactor/sync
Simplify git state
2020-11-11 02:35:18 -06:00
resources Merge branch 'master' into fix-IOS-bottom-fixed-position 2020-11-09 17:26:54 +08:00
src refactor(sync): update sync status after both pull and push 2020-11-11 16:31:56 +08:00
.gitignore feat(dev): update build process 2020-11-02 10:52:37 +08:00
.projectile Add contents 2020-07-21 15:50:13 +08:00
CODE_OF_CONDUCT.md docs: add Code of Conduct 2020-11-09 14:41:54 +08:00
LICENSE.md fix(license): add exceptions for epl libraries 2020-11-03 23:46:52 +08:00
clojure.bat Update windows setup 2020-11-08 13:52:32 -05:00
deps.edn feat: add cljs.spec.alpha 2020-11-09 22:57:41 +08:00
externs.js refactor: remove web 2020-10-27 23:19:40 +08:00
gulpfile.js feat(dev): using same style path at production 2020-11-02 16:36:07 +08:00
package.json chore: add release-publishing command 2020-11-07 23:02:37 +08:00
postcss.config.js fix(dev): unexpected purgecss result 2020-11-02 16:36:07 +08:00
readme.org chore: add missing environment variables to readme 2020-11-11 15:29:15 +08:00
shadow-cljs.edn feat(dev): update build process 2020-11-02 10:52:37 +08:00
start-windows.bat Update windows setup 2020-11-08 13:52:32 -05:00
tailwind.config.js fix(dev): unexpected purgecss result 2020-11-02 16:36:07 +08:00
tailwind.css feat(dev): better support for processing tailwind css 2020-11-02 09:56:52 +08:00
yarn.lock feat(dev): update npm build scripts 2020-11-02 10:57:51 +08:00

readme.org

Logseq

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

Set up development environment

If you are on Windows, use the Windows setup.

2. Create a GitHub app:

Follow the guide at https://docs.github.com/en/free-pro-team@latest/developers/apps/creating-a-github-app, where 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. Set up PostgreSQL

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

4. 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 and your-app.private-key.pem with yours
  export GITHUB_APP_PEM="/your-code-directory/your-app.private-key.pem"
  export LOG_PATH="/tmp/logseq"
  export PG_USERNAME="xxx"
  export PG_PASSWORD="xxx"

5. Compile to JavaScript

  cd web
  yarn
  yarn watch

6. Start the Clojure server

  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

      cd resources
      java -Duser.timezone=UTC -jar logseq.jar

7. 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. Create a GitHub app

Follow Step 2 above if you want Logseq to connect to GitHub. If not, skip this section. The GITHUB_APP_PEM variable in the run-windows.bat needs to be set with the correct directory for your system.

3. Set up 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.

4. Download the Clojure server

Go to https://github.com/logseq/logseq-internal/releases, download the logseq.jar and move into the root directory of repo.

5. Start Logseq

Run start-windows.bat which is located in the repo. This will open a second terminal that runs Logseq's backend server. To completely stop Logseq, you'll need to also close that second terminal that was opened.

start-windows.bat will try to start PostgreSQL for you if it's not already started.