Svelte | Introduction and Installation Last Updated : 11 Feb, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report Svelte is the new methodology for creating web apps. It can be used in a small part of a code or in an entire single page application. It is a compiler not a framework, which is faster than other JavaScript libraries like ReactJS, AngularJS, VueJS. It is used to create reactive web apps. If any change occurs in the data that change will reflect on the page instantly. It is also used in rapid application development (RAD) means quickly produce minimally coded software application. It is used in Web Optimization. But it does not use virtual DOM which makes it different from others. It is free and open source written by Rich Harris. Svelte Compiles your Code for production at execution time into vanilla JavaScript bundle. If you deploy your application over the internet then you don't need to deploy Svelte like we did other library. That's why it results in a fast execution. Prerequisite: Before installing or start working on Svelte, we have to make sure few things are available in our system. Any Text Editor(e.g vs code, Atom etc.)NodeJS installed in your system: Installation of Node.js on WindowsInstallation of Node.js on Linux Installation of Svelte: Now we are ready to install the Svelte. Step 1: Open the command prompt or terminal and install a package named degit, which allows us to easily clone the latest commit from a github repository. npm install -g degit Step 2: Now create a directory on the desktop and run the below command. The degit go to the repository(sveltejs) find the template and download it locally for us in the project named myproject. degit sveltejs/template myproject Step 3: The project is created, now open this in text editor. In the src folder we have main.js file which is used to execute our svelte app The App.svelte is the root component of our application and the package.json file contains all the dependencies which needs to be installed. Step 4: Now install all the dependencies make sure you are inside of the "myproject" directory. npm installStep 5: Now create a local development server to run our application. npm run devStep 6: Now follow the above link and application will open in the browser. Comment More infoAdvertise with us Next Article Svelte | Introduction and Installation A ap1079997 Follow Improve Article Tags : JavaScript JavaScript-Misc how-to-install Similar Reads Vue.js Introduction & Installation Vue JS is a JavaScript framework used to design and build user interfaces. It is one of the best frameworks for Single Page Web Applications. It is compatible with other libraries and extensions as well. In the development field, there may be so many issues that can not be solved by using a single l 2 min read How to Install Scala in Linux? Prerequisite: Introduction to Scala Before, we start with the process of Installing Scala on our System. We must have first-hand knowledge of What the Scala Language is and what it actually does? Scala is a general-purpose, high-level, multi-paradigm programming language. It is a pure object-oriente 3 min read How to install Scala on Windows? Prerequisite: Introduction to Scala Before, we start with the process of Installing Scala on our System, we must have first-hand knowledge of What the Scala Language is and what it actually does? Scala is a general-purpose, high-level, multi-paradigm programming language. It is a pure object-oriente 3 min read How To Route Programmatically In SvelteKit? Routing is an important part of any web application, allowing users to navigate between different views or pages. SvelteKit, a modern framework for building web apps using Svelte, offers powerful routing capabilities both declaratively (through URL-based routes) and programmatically (using JavaScrip 4 min read Svelte Nesting Components Nesting in svelte is a way to combine different components to get the desired user interface we want, we can combine our own components or use 3rd party components in our svelte application Why do we need nesting?If we will use a single component to contain all the segments and functionalities of ou 3 min read Like