Everything you need to build a Svelte project, powered by sv.
If you're seeing this, you've probably already done this step. Congrats!
# create a new project
npx sv create my-appTo recreate this project with the same configuration:
# recreate this project
bun x [email protected] create --template minimal --types ts --add prettier vitest="usages:unit,component" mcp="ide:claude-code,cursor,gemini,opencode,vscode+setup:remote" tailwindcss="plugins:typography,forms" --install bun promptify- Copy
.env.exampleto.env. - Set
SECRET_API_KEYin.env. - Adjust
SECRET_API_URLandAI_MODELin.envif you want a different endpoint or routed model. - Start the app with
bun run dev.
- Add
SECRET_API_KEY,SECRET_API_URL, andAI_MODELin Dokploy's Environment tab. - Deploy the repo in Dokploy using
docker-compose.yml. - Expose container port
3000in Dokploy.
The app now builds with SvelteKit's Node adapter and runs behind Dokploy's reverse proxy using forwarded headers.
Verification:
bun run checkbun run testbun run build
Once you've created a project and installed dependencies, start a development server:
bun run dev
# or start the server and open the app in a new browser tab
bun run dev -- --openTo create a production version of your app:
bun run buildYou can preview the production build with bun run preview.
To deploy your app, you may need to install an adapter for your target environment.