name: Vercel KV for Redis SvelteKit Starter slug: kv-redis-sveltekit description: Simple SvelteKit template that uses Vercel KV for Redis to track pageviews. framework: Svelte useCase: Starter css: Tailwind database: Vercel KV deployUrl: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fstorage%2Fkv-redis-sveltekit&project-name=kv-redis-sveltekit&repository-name=kv-redis-sveltekit&demo-title=Vercel%20KV%20for%20Redis%20SvelteKit%20Starter&demo-description=Simple%20Svelte%20template%20that%20uses%20Vercel%20KV%20for%20Redis%20to%20track%20pageviews.&demo-url=https%3A%2F%2Fkv-redis-sveltekit.vercel.app%2F&demo-image=https%3A%2F%2Fkv-redis-sveltekit.vercel.app%2Fopengraph-image.png&stores=%5B%7B"type"%3A"kv"%7D%5D demoUrl: https://kv-redis-sveltekit.vercel.app/ relatedTemplates:
Simple SvelteKit template that uses Vercel KV for Redis to track pageviews.
https://kv-redis-sveltekit.vercel.app/
You can choose from one of the following two methods to use this repository:
Deploy the example using Vercel:
Everything you need to build a Svelte project, powered by create-svelte
.
If you're seeing this, you've probably already done this step. Congrats!
# create a new project in the current directory
pnpm create svelte@latest
# create a new project in my-app
pnpm create svelte@latest my-app
Once you've created a project and installed dependencies with pnpm install
, start a development server:
pnpm dev
# or start the server and open the app in a new browser tab
pnpm dev --open
To create a production version of your app:
pnpm build
You can preview the production build with pnpm preview
.
To deploy your app, you may need to install an adapter for your target environment.