mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Add link to self-hosted admin page and add docs for building front-end assets. Close #901
This commit is contained in:
parent
2a50694089
commit
7c29af9745
2 changed files with 15 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
# Admin Panel
|
# Admin Panel
|
||||||
> Describes the Khoj settings configurable via the admin panel
|
> Describes the Khoj settings configurable via the admin panel
|
||||||
|
|
||||||
|
By default, you admin panel is available at `http://localhost:42110/server/admin/`. You can access the admin panel by logging in with your admin credentials (this would be your `KHOJ_ADMIN_EMAIL` and `KHOJ_ADMIN_PASSWORD`). The admin panel allows you to configure various settings for your Khoj server.
|
||||||
|
|
||||||
## App Settings
|
## App Settings
|
||||||
### Agents
|
### Agents
|
||||||
Add all the agents you want to use for your different use-cases like Writer, Researcher, Therapist etc.
|
Add all the agents you want to use for your different use-cases like Writer, Researcher, Therapist etc.
|
||||||
|
|
|
@ -102,7 +102,19 @@ sudo -u postgres createdb khoj --password
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
#### 3. Run
|
#### 3. Build the front-end assets
|
||||||
|
|
||||||
|
```shell
|
||||||
|
cd src/interface/web/
|
||||||
|
yarn install
|
||||||
|
yarn export
|
||||||
|
```
|
||||||
|
|
||||||
|
You can optionally use `yarn dev` to start a development server for the front-end which will be available at http://localhost:3000. This is especially useful if you're making changes to the front-end code, but not necessary for running Khoj. Note that streaming does not work on the dev server due to how it is handled with SSR in Next.js.
|
||||||
|
|
||||||
|
Always run `yarn export` to test your front-end changes on http://localhost:42110 before creating a PR.
|
||||||
|
|
||||||
|
#### 4. Run
|
||||||
1. Start Khoj
|
1. Start Khoj
|
||||||
```bash
|
```bash
|
||||||
khoj -vv
|
khoj -vv
|
||||||
|
|
Loading…
Reference in a new issue