Skip to content

Commit 30d9ae0

Browse files
Merge pull request #18 from christianhellsten/update-readme
Update README
2 parents 1ca4b1e + 0761390 commit 30d9ae0

23 files changed

Lines changed: 3863 additions & 340 deletions

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ out
9393

9494
# Nuxt.js build / generate output
9595
.nuxt
96-
dist
9796

9897
# Gatsby files
9998
.cache/

Caddyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:80
22

3-
root * /srv
3+
root * dist/
44
file_server
55
try_files {path} /index.html

Caddyfile.docker

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
:80
2+
3+
root * /srv
4+
file_server
5+
try_files {path} /index.html

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM caddy:2-alpine
55
WORKDIR /srv
66

77
# Copy Caddyfile and content from the local 'dist' folder to the working directory
8-
COPY Caddyfile /etc/caddy/Caddyfile
8+
COPY Caddyfile.docker /etc/caddy/Caddyfile
99
COPY dist /srv
1010

1111
# Expose port 80 and 443 for HTTP and HTTPS traffic

README.md

Lines changed: 110 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
![Contributions Welcome](https://img.shields.io/badge/Contributions-welcome-blue.svg)
66

7-
A HTML UI for Ollama.
7+
A HTML UI for [Ollama](https://ollama.ai).
88

99
## Goals
1010

@@ -13,32 +13,6 @@ A HTML UI for Ollama.
1313
- Zero dependencies: HTML, CSS, and JavaScript (less than 10 Kb gzipped)
1414
- Simple installation: run in your browser, host on your own server
1515

16-
## Features
17-
18-
- https://ollama.ai support
19-
20-
**Chat**
21-
22-
- New chat
23-
- Edit chat
24-
- Delete chat
25-
- Download chat
26-
- Scroll to top/bottom
27-
- Copy chat to clipboard
28-
29-
**Chats**
30-
31-
- Search chats
32-
- Clear chats
33-
- Chat history
34-
35-
**Settings**
36-
37-
- URL
38-
- Model
39-
- System prompt
40-
- Model parameters
41-
4216
## Screenshots
4317

4418
**Desktop**
@@ -55,53 +29,69 @@ A HTML UI for Ollama.
5529
![Settings screen](/screenshots/mobile-settings.png)
5630
![Search](/screenshots/mobile-search.png)
5731

58-
## Installing
32+
## How to install Ollama
33+
34+
**Manually**
5935

60-
First, install and start [Olama](https://ollama.ai/).
36+
Download [Ollama](https://ollama.ai/) from the website.
37+
38+
**MacOS**
6139

6240
```bash
63-
$ ollama run dolphin-phi
41+
brew install ollama
6442
```
6543

66-
Next, clone this repository:
44+
**Linux**
45+
46+
For instructions on how to install Ollama on Linux, see [https://ollama.ai/download/linux](https://ollama.ai/download/linux).
47+
48+
## How to install and run the Ollama UI
49+
50+
To run the Ollama UI, all you need is a web server that serves dist/index.html
51+
and the bundled JS and CSS file.
52+
53+
First, start Ollama:
6754

6855
```bash
69-
$ git clone git@github.com:christianhellsten/ollama-html-ui.git
56+
$ ollama run dolphin-phi
7057
```
7158

72-
## Running
59+
**Using Caddy**
7360

74-
**Using Docker**
75-
76-
To run the application using Docker, execute the following command:
61+
To run the Ollama UI using [Caddy](https://caddyserver.com/), execute the following command from the command line:
7762

7863
```bash
79-
docker run -p 80:80 aktagon/ollama-html-ui
64+
$ git clone git@github.com:christianhellsten/ollama-html-ui.git
65+
$ caddy run
8066
```
8167

82-
**Using the built-in server**
68+
**Using Docker**
8369

84-
To run the application using the built-in server, execute the following command:
70+
To run the Ollama UI using Docker, execute the following command from the command line:
8571

8672
```bash
87-
$ cd ollama-html-ui
88-
# Use built-in and unsafe HTTP server
89-
$ npm run server
90-
$ open http://locahost:1234
73+
$ docker run -p 80:80 aktagon/ollama-html-ui
9174
```
9275

93-
## Deployment
76+
Alternatively, build the image yourself:
9477

9578
```bash
96-
$ parcel build index.html
79+
$ git clone git@github.com:christianhellsten/ollama-html-ui.git
80+
$ docker build -t ollama-html-ui .
81+
$ docker run -p 80:80 ollama-html-ui
9782
```
9883

99-
## Development
84+
<details>
85+
<summary>Contributing</summary>
86+
Clone the repository:
10087

10188
```bash
89+
$ git clone git@github.com:christianhellsten/ollama-html-ui.git
90+
$ cd ollama-html-ui
10291
$ yarn global add parcel-bundler
10392
# Alternatively, use npm:
10493
# npm install -g parcel-bundler
94+
$ npm install
10595
$ parcel index.html
10696
$ open http://locahost:1234
10797
```
@@ -117,40 +107,79 @@ $ ollama run dolphin-phi
117107
$ node test
118108
```
119109

120-
## TODO
121-
122-
- [ ] Edit message / response
123-
- [ ] Delete message / response
124-
- [ ] Clear chat
125-
- [ ] CSP
126-
- [ ] Speech recognition
127-
- [ ] Image upload / multi-modal
128-
- [ ] Markdown support
129-
- [ ] Keyboard shortcuts
130-
131-
## Done
132-
133-
- [x] Ollama chat API / chat memory
134-
- [x] IndexedDB persistence
135-
- [x] Model parameters
136-
- [x] System prompt
137-
- [x] Copy message to clipboard
138-
- [x] Select model in settings (global)
139-
- [x] Select model in chat (local)
140-
- [x] Search chats
141-
- [x] Delete Chat
142-
- [x] Select model
143-
- [x] Save settings
144-
- [x] View settings
145-
- [x] Clear chats
146-
- [x] Edit chat
147-
- [x] New chat
148-
- [x] Abort response
149-
- [x] Send message
150-
- [x] UI tests: https://nodejs.org/api/test.html
151-
152-
## Licensing
110+
## Deployment
153111

112+
```bash
113+
$ parcel build index.html
114+
```
115+
</summary>
116+
</details>
117+
118+
119+
<details>
120+
<summary>Tasks</summary>
121+
- [ ] Edit message / response
122+
- [ ] Clear chat
123+
- [ ] CSP
124+
- [ ] Speech recognition
125+
- [ ] Image upload / multi-modal
126+
- [ ] Markdown support
127+
- [ ] Keyboard shortcuts
128+
129+
## Done
130+
131+
- [x] Delete message / response
132+
- [x] Ollama chat API / chat memory
133+
- [x] IndexedDB persistence
134+
- [x] Model parameters
135+
- [x] System prompt
136+
- [x] Copy message to clipboard
137+
- [x] Select model in settings (global)
138+
- [x] Select model in chat (local)
139+
- [x] Search chats
140+
- [x] Delete Chat
141+
- [x] Select model
142+
- [x] Save settings
143+
- [x] View settings
144+
- [x] Clear chats
145+
- [x] Edit chat
146+
- [x] New chat
147+
- [x] Abort response
148+
- [x] Send message
149+
- [x] UI tests: https://nodejs.org/api/test.html
150+
</summary>
151+
</details>
152+
153+
<details>
154+
<summary>Features</summary>
155+
- https://ollama.ai support
156+
157+
**Chat**
158+
159+
- New chat
160+
- Edit chat
161+
- Delete chat
162+
- Download chat
163+
- Scroll to top/bottom
164+
- Copy chat to clipboard
165+
166+
**Chats**
167+
168+
- Search chats
169+
- Clear chats
170+
- Chat history
171+
172+
**Settings**
173+
174+
- URL
175+
- Model
176+
- System prompt
177+
- Model parameters
178+
</summary>
179+
</details>
180+
181+
<details>
182+
<summary>Licensing</summary>
154183
This project is available under two licensing options:
155184

156185
1. **Open Source License (MIT)**:
@@ -166,4 +195,5 @@ This project is available under two licensing options:
166195
- To inquire about our commercial licensing options, pricing, and terms, please contact us at [christian@aktagon.com](mailto:christian@aktagon.com) to discuss your specific requirements.
167196

168197
We value and support both our open source community and commercial users. By providing dual licensing options, we aim to make this project accessible to a wide range of users while offering customized solutions for commercial projects.
169-
198+
</summary>
199+
</details>

0 commit comments

Comments
 (0)