Sapper template with an opinionated svelte-i18n usage
The Sapper template is a default template for building web applications using the Sapper framework. It is available for both Rollup and webpack bundlers. The template provides a pre-built structure and features to help developers get started quickly with Sapper.
src directory containing entry points, a static directory for static assets, and a routes directory for defining pages and server routes.static directory allows developers to store and serve static assets using a built-in server.To install the Sapper template, you can use either the degit tool or the GitHub template feature.
Using degit:
degit sveltejs/sapper-template#rollup
or run this command for the webpack branch:
degit sveltejs/sapper-template#webpack
cd sapper-template
npm install
npm run dev
http://localhost:3000 to view the project.Using GitHub templates:
sapper-template-rollup or sapper-template-webpack.npm install
npm run dev
http://localhost:3000 to view the project.For further guidance on getting started with Sapper, refer to the official Sapper documentation at sapper.svelte.dev.
The Sapper template is a convenient starting point for building web applications with the Sapper framework. It provides a pre-configured structure and features such as server-side rendering, client-side routing, code-splitting, and static asset management. By following the installation guide, developers can quickly set up the template and start developing their Sapper applications.