mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-12-20 03:17:44 +00:00
30 lines
893 B
Markdown
30 lines
893 B
Markdown
|
# Run it locally
|
||
|
## Prerequisites
|
||
|
Install the runtime dependencies. This command should install all dev dependencies.
|
||
|
```bash
|
||
|
yarn add
|
||
|
```
|
||
|
|
||
|
Run the application
|
||
|
```bash
|
||
|
yarn start
|
||
|
```
|
||
|
# Deploying the Electron App
|
||
|
## Prerequisites
|
||
|
Install the ToDesktop CLI. Full documentation can be found here: https://www.npmjs.com/package/@todesktop/cli
|
||
|
```bash
|
||
|
yarn global add @todesktop/cli
|
||
|
```
|
||
|
|
||
|
Configure the `todesktop.json` file. Fill in the `id` based on the application ID.
|
||
|
|
||
|
## Build
|
||
|
|
||
|
This will prompt you to login. It triggers builds for all platforms.
|
||
|
|
||
|
```bash
|
||
|
todesktop build
|
||
|
```
|
||
|
|
||
|
If you get an error saying the command is not found, make sure that your `yarn` global bin directory is in your `PATH` environment variable. You can find the location of the global bin directory by running `yarn global bin`. Add this line to your `.bashrc` or `.zshrc` file: `export PATH="$PATH:$(yarn global bin)"`.
|