115 lines
1.4 KiB
Markdown
115 lines
1.4 KiB
Markdown
# Quick Ling Setup
|
|
|
|
|
|
## Setup
|
|
|
|
Make sure to install dependencies:
|
|
|
|
```bash
|
|
# npm
|
|
npm install
|
|
|
|
# pnpm
|
|
pnpm install
|
|
|
|
# yarn
|
|
yarn install
|
|
|
|
# bun
|
|
bun install
|
|
```
|
|
|
|
## Ollama Setup (Optional)
|
|
|
|
To use the translation service, you need to have Ollama installed and the translategemma model loaded.
|
|
|
|
### Installing Ollama
|
|
|
|
#### Linux and macOS
|
|
```bash
|
|
# Add Ollama repository
|
|
curl -fsSL https://ollama.com/install.sh | sh
|
|
```
|
|
|
|
#### Windows (PowerShell)
|
|
```powershell
|
|
# Download and install
|
|
irm https://ollama.com/install.ps1 | iex
|
|
```
|
|
|
|
### Pulling the TranslateGemma Model
|
|
|
|
After installing Ollama, pull the translategemma model:
|
|
|
|
```bash
|
|
# Pull the translation model
|
|
ollama pull translategemma:latest
|
|
```
|
|
|
|
For specific model versions:
|
|
```bash
|
|
# Pull a specific version
|
|
ollama pull translategemma:12b
|
|
```
|
|
|
|
### Running Ollama Server
|
|
|
|
Start the Ollama server (runs on `localhost:11434` by default):
|
|
|
|
```bash
|
|
ollama serve
|
|
```
|
|
|
|
## Development Server
|
|
|
|
Start the development server on `http://localhost:3000`:
|
|
|
|
```bash
|
|
# npm
|
|
npm run dev
|
|
|
|
# pnpm
|
|
pnpm dev
|
|
|
|
# yarn
|
|
yarn dev
|
|
|
|
# bun
|
|
bun run dev
|
|
```
|
|
|
|
## Production
|
|
|
|
Build the application for production:
|
|
|
|
```bash
|
|
# npm
|
|
npm run build
|
|
|
|
# pnpm
|
|
pnpm build
|
|
|
|
# yarn
|
|
yarn build
|
|
|
|
# bun
|
|
bun run build
|
|
```
|
|
|
|
Locally preview production build:
|
|
|
|
```bash
|
|
# npm
|
|
npm run preview
|
|
|
|
# pnpm
|
|
pnpm preview
|
|
|
|
# yarn
|
|
yarn preview
|
|
|
|
# bun
|
|
bun run preview
|
|
```
|
|
|
|
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information. |