mirror of
https://github.com/tauri-apps/tauri-search.git
synced 2026-02-04 02:41:20 +01:00
969ae36dd1aa56c80303c2231af16b3fbda1392f
tauri-search
use of Meilisearch for Tauri's website
Getting Started
# 1. installs deps for both CLI and Docs
# 2. starts Docs server (in dev mode with HMR), opens in browser
# 3. starts Meilisearch server in Docker
pnpm run start
If you've already installed all the deps and want more granular control you can try any of the following script targets:
# start Docker services (you must have Docker installed)
docker compose up -d
# or
pnpm run up
# stop Docker services
docker compose down
# or
pnpm run down
# turn on watcher mode for both CLI and Docs
pnpm run watch
A browser window should now have opened up pointing to http://localhost:3333. See you over there.
Quick CLI overview
For those who aren't impressed with browser based documentation ... here's a quick guide to the script commands you can use from the root of the monorepo:
pnpm run watch- start up dev server in HMR mode, and put watchers on all code intauri-searchpnpm run build- build both CLI and npm exports oftauri-searchpackagepnpm run cli:clear-caches- removes all JSON based cache files of AST or search Documents fromtauri-searchpnpm run cli:push-caches- will create caches (where necessary) and push them into the local Meilisearch serverpnpm run test- runs the terminal test runner once and exitspnpm run test:watch- runs test runner in both console and web browser and watches for changes
Description
Languages
TypeScript
76.8%
Vue
12.5%
Rust
8.2%
CSS
1.4%
JavaScript
0.7%
Other
0.4%