mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 16:36:27 +00:00
56 lines
1.2 KiB
Markdown
56 lines
1.2 KiB
Markdown
# Develop Logseq
|
|
## Requirements
|
|
|
|
- [Node.js](https://nodejs.org/en/download/) (See [build.yml](.github/workflows/build.yml) for allowed version) & [Yarn](https://classic.yarnpkg.com/en/docs/install/)
|
|
- [Java & Clojure](https://clojure.org/guides/getting_started). (If you run into `Execution error (FileNotFoundException) at java.io.FileInputStream/open0 (FileInputStream.java:-2). -M:cljs (No such file or directory)`, it means you have a wrong Clojure version installed. Please uninstall it and follow the instructions linked.)
|
|
|
|
## Clone project
|
|
|
|
```bash
|
|
git clone https://github.com/logseq/logseq
|
|
cd logseq
|
|
```
|
|
|
|
## Browser development
|
|
|
|
### Development
|
|
|
|
```bash
|
|
yarn
|
|
yarn watch
|
|
```
|
|
|
|
Then open the browser <http://localhost:3001>.
|
|
|
|
### Production
|
|
|
|
```bash
|
|
yarn release
|
|
```
|
|
|
|
## Desktop app development
|
|
|
|
### Development
|
|
|
|
1. Install npm packages for building the desktop app
|
|
|
|
``` bash
|
|
yarn install && cd static && yarn install && cd ..
|
|
```
|
|
2. Compile to JavaScript and open the dev app
|
|
|
|
```bash
|
|
yarn watch
|
|
# Wait until watch is finished building and then in a different shell
|
|
yarn dev-electron-app
|
|
```
|
|
|
|
Alternatively, run `bb dev:electron-start` to do this step with one command.
|
|
|
|
### Production
|
|
Build a release:
|
|
|
|
```bash
|
|
yarn release-electron
|
|
```
|