|
1 | | -# KiteSQL GitHub Profile Demo |
| 1 | +# KiteSQL Website |
2 | 2 |
|
3 | | -A lightweight Vite site that showcases KiteSQL running fully in the browser via WebAssembly. Use it for GitHub Pages or any static host, then embed a link in your profile README. |
| 3 | +A small Vite site for KiteSQL that works as both: |
4 | 4 |
|
5 | | -## Setup |
| 5 | +- a lightweight landing page for the project |
| 6 | +- an in-browser playground powered by the published WebAssembly build |
| 7 | + |
| 8 | +The site lives next to the main repository so it can be deployed independently to GitHub Pages, Cloudflare Pages, Netlify, or any other static host. |
| 9 | + |
| 10 | +## What it includes |
| 11 | + |
| 12 | +- Product-style landing page for KiteSQL |
| 13 | +- Rust-native API / ORM / migration positioning |
| 14 | +- Interactive SQL playground backed by `WasmDatabase` |
| 15 | +- Zero-backend demo that runs fully in the browser |
| 16 | + |
| 17 | +## Local development |
| 18 | + |
| 19 | +Install dependencies: |
6 | 20 |
|
7 | | -1) Install deps (pulls the published `kite_sql` npm package): |
8 | 21 | ```bash |
9 | 22 | npm install |
10 | 23 | ``` |
11 | | -2) Run locally: |
| 24 | + |
| 25 | +Start the dev server: |
| 26 | + |
12 | 27 | ```bash |
13 | 28 | npm run dev |
14 | 29 | ``` |
15 | | -> The app uses a small browser-friendly wrapper (`src/kite-sql-web.ts`) to load the npm-shipped `kite_sql_bg.wasm` with Vite’s `?url` asset handling. No local Rust build is needed. |
16 | 30 |
|
17 | | -## Scripts |
18 | | -- `npm run dev` — start Vite dev server. |
19 | | -- `npm run build` — produce static assets in `dist/` (ready for GitHub Pages). |
20 | | -- `npm run preview` — preview the production build. |
| 31 | +Build the static site: |
| 32 | + |
| 33 | +```bash |
| 34 | +npm run build |
| 35 | +``` |
| 36 | + |
| 37 | +Preview the production bundle: |
| 38 | + |
| 39 | +```bash |
| 40 | +npm run preview |
| 41 | +``` |
| 42 | + |
| 43 | +## WebAssembly source |
21 | 44 |
|
22 | | -## Deploy to GitHub Pages |
23 | | -- Push this folder as a separate repo or a `gh-pages` branch, then serve `dist/`. |
24 | | -- In your GitHub profile README, link to the deployed page and add a badge/screenshot. |
| 45 | +The site currently uses the published npm package for KiteSQL wasm assets through `@kipdata/kite_sql`. |
| 46 | +That keeps the website simple to deploy because no local Rust build is required. |
25 | 47 |
|
26 | | -## How it works |
27 | | -- Uses the published `kite_sql` wasm asset from npm with a small browser loader. |
28 | | -- Runs a small SQL script (create/insert/update/select) entirely in the browser, then renders the result table. |
| 48 | +After publishing a newer npm package, bump the dependency version here if you want the website to track the latest release. |
0 commit comments