It's a boilerplate template like any other. Compared to the default Svelte 5 kit template, a few modifications have been made.
<button>
element, in order to hide the link hover tooltips that may be undesired when building app interfaces.The following commands will create a local copy of this repo and make it ready for development:
# clone repository into current directory
# note: this only works if the directory is empty!
git clone https://github.com/dante-quest/svelte5-spa-boilerplate.git .
npm install
# clone repository into target directory
git clone https://github.com/dante-quest/svelte5-spa-boilerplate.git your_project_name
cd your_project_name
npm install
# optionally, rename the default directory name:
git clone https://github.com/dante-quest/svelte5-spa-boilerplate.git
mv svelte5-spa-boilerplate your_project_name
cd your_project_name
npm install
The following commands are essential for the development phase:
# start the dev server
npm run dev
# start the dev server and open the project in your default browser
npm run dev -- --open
# build the project as a SPA
npm run build
The command npm run build will create the SPA in the ./build folder with index.html as the entry-point.
You can optionally activate prerendering if you desire or require increased performance. You can do this by adding export const prerender = true; in +layout.ts and other .ts files. This step also requires you to change the fallback from index.html to something else like 200.html in svelte.config.js.