This is a Nuxt 3 + Ollama web application. It's an example of Ollama Javascript library.
Feature list:
- Models management (list, download, delete)
- Chat with models
You will need an Ollama server running. You can run it in local environment following the installation guide of Ollama.
By default, Ollama server is running on http://localhost:11434.
#https://hub.docker.com/r/chromadb/chroma/tags
docker pull chromadb/chroma
docker run -d -p 8000:8000 chromadb/chroma
Now, ChromaDB is running on http://localhost:8000
- Copy the
.env.example
file to.env
file:
cp .env.example .env
- Make sure to install the dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
- Run a migration to create your database tables with Prisma Migrate
# npm
npm run prisma-migrate
# pnpm
pnpm prisma-migrate
# yarn
yarn prisma-migrate
# bun
bun run prisma-migrate
Make sure both Ollama Server and ChromaDB are running.
Start the development server on http://localhost:3000
:
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run dev