|
|
5 years ago | |
|---|---|---|
| resources | 5 years ago | |
| src | 5 years ago | |
| .gitignore | 5 years ago | |
| .projectile | 5 years ago | |
| CODE_OF_CONDUCT.md | 5 years ago | |
| LICENSE.md | 5 years ago | |
| clojure.bat | 5 years ago | |
| deps.edn | 5 years ago | |
| externs.js | 5 years ago | |
| gulpfile.js | 5 years ago | |
| package.json | 5 years ago | |
| postcss.config.js | 5 years ago | |
| readme.org | 5 years ago | |
| shadow-cljs.edn | 5 years ago | |
| start-windows.bat | 5 years ago | |
| tailwind.config.js | 5 years ago | |
| tailwind.css | 5 years ago | |
| yarn.lock | 5 years ago |
A privacy-first, open-source platform for knowledge sharing and management.
If you are on Windows, use the Windows setup.
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.
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.
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"
cd web yarn yarn watch
logseq.jar and move it to the resources directory.Run jar
cd resources java -Duser.timezone=UTC -jar logseq.jar
Open http://localhost:3000.
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.
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.
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.
Go to https://github.com/logseq/logseq-internal/releases, download the logseq.jar and move into the root directory of repo.
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.