This project was shown on Cadec 2022 on the Svelte presentation if you wanna try it out.
This is a project setup an initialzied with Svelte Kit.
Read everything about Svelte here
And the application framework on top of Svelte called Svelte Kit
After you have forked or clone the repo to your local machine
# download all the needed npm modules
npm install
Note: the
@next
is temporary
Once you've downloaded the project and installed dependencies with npm install
, start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
This project uses jest and svelte-jester to test the svelte components.
For the moment it only has a few tests but is shows principally how it could be done anyway
# to run the tests
npm run test
Before creating a production version of your app, install an adapter for your target environment. Then:
npm run build
You can preview the built app with
npm run preview
, regardless of whether you installed an adapter. This should not be used to serve your app in production.
This project was inspired and started after watching this video with James Q Quick
SvelteKit Crash Course - SSR, API Routes, Stores, Tailwind CSS, and More!