Search⌘ K
AI Features

How to Set Up Svelte Locally

Discover how to set up a new Svelte project locally using the create-vite command. Learn to install necessary dependencies, run the development server, and build your project for production. This lesson guides you through initializing your reactive app environment step-by-step.

How to set up the project

In order to set up a brand new Svelte project in our local environment, we're going to use the create-vite command. To create a new Svelte project, type the following into your terminal:

YAML
npm create vite@latest svelte-students –– ––template svelte

This will create a new folder called svelte-students ...