An Interest In:
Web News this Week
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
- March 26, 2024
Getting started with Svelte
What is Svelte?
According to the official website;
"Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue do the bulk of their work in the browser, Svelte shifts that work into a compile step that happens when you build your app."
In simple terms, Svelte is a tool for building JavaScript-based web applications like React, Angular or Vue.
Technically, Svelte acts as a compiler.
Enough of the bells and whistle, there are many articles about how good and powerful Svelte really is, let's get right into our first project.
Our first Svelte Project.
TLDR: Use the online REPL to learn without installing anything locally.
Requirements
- Install
- Node
- Git
- Basics of:
- HTML
- CSS
- JavaScript
- Navigating the Command Line
// download the official svelte templatenpx degit sveltejs/template project-name// enter into projectcd project-name// install dependencies to run sveltenpm install// run the development servernpm run dev
Open browser and type localhost:5000
, you should see something like this.
Conclusion
This is the basics of getting started with Svelte. Thanks for reading.
Next up will be about the file structure in Svelte.
External Resources
Original Link: https://dev.to/benjithorpe/getting-started-with-svelte-406k
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To