Getting started with Sapper
In this post, we will see how to get started with the sapper.
What is sapper?
Sapper is a framework for building web applications of all sizes using Svelte. It is similar to next.js to react. Sapper also uses file bases routing.
Basic usage
To start a basic project, run the below command.
npx degit "sveltejs/sapper-template#webpack" my-app-name
if you use rollup,
npx degit "sveltejs/sapper-template#rollup" my-app-name
This will clone the basic repo that you can get started with.
Run the below command to install all the required packages
yarn install
or
npm install
To run the app, paste the below command,
npm run dev