Simple company demo site for showcasing some SSR use cases with SvelteKit 1.0. 🎉
It's work in progress.
https://sveltekit-company-demo.mandrasch.dev/
This is based on the "SvelteKit demo app" which can be generated via
npm create svelte@latest my-app
I added TailwindCSS (guide). See How was this created?.
This web app is deployed via ploi.io to an european Hetzner Cloud instance:
https://sveltekit-company-demo.mandrasch.dev/
See Tutorial: Host SvelteKit apps with SSR-support via ploi.io on Hetzner Cloud for infos about this.
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.
npm create svelte@latest .
# Selected
# - SvelteKit demo app
# - Yes, JavaScript with JSDoc comments
# - Add ESlint - yes
# - Add prettier - yes
# - Add playwright - yes
# - Add vitest - yes
npm install
git add -A && git commit -m "Initial commit"
# Added tailwind via tutorial
# https://tailwindcss.com/docs/guides/sveltekit
# Added sass:
npm i sass
# Added tailwind typography
# https://tailwindcss.com/docs/typography-plugin
npm install -D @tailwindcss/typography
Tested with Node: v18.7.0 npm: 9.2.0
Thanks very much to anyone providing these resources!
On SvelteKits roadmap itself: Image optimization, Multilanguage
See https://dev.to/mandrasch for some blog posts about SvelteKit, happy to connect and discuss!