Getting started with Svelte
In this post, lets see how to setup and get started with svelte.
What is svelte?
Svelte runs at build time, changing over your parts into exceptionally effective basic code that carefully refreshes the DOM. Therefore, you're ready to compose ambitious applications with magnificent execution attributes.
Installation
Run the below command to start a basic svelte project
npx degit sveltejs/template my-first-project
Now, move into the project that you created
cd my-first-project
Now install all the required dependencies with the below command
npm install
or if you're using yarn
yarn install
To start the app in development server, run the below command.
npm run dev
To generate production build, run the below command.
npm run build