This is a starter template for building Svelte projects, powered by sv
.
Start by creating a new Svelte project using the sv
CLI.
Create a new project in the current directory:
npx sv create
Create a new project in a specified folder (e.g., my-app
):
npx sv create my-app
After creating a project and installing dependencies, start the development server:
Install dependencies:
npm install
Start the server on port 4000:
npm run dev -- --port 4000
The app will be available at http://localhost:4000
by default.
To generate a production-ready version of your app:
Build the app:
npm run build
Preview the production build locally:
npm run preview
This template includes the following pre-configured pages:
Admin Console:
/admin
(example: http://localhost:4000/admin
).Landing Page:
/
(example: http://localhost:4000
).You can edit these pages in the src/routes
directory.
To deploy your application, you may need to install a suitable adapter based on your target environment, such as:
@sveltejs/adapter-static
@sveltejs/adapter-node
@sveltejs/adapter-vercel
, @sveltejs/adapter-netlify
, etc.Check the official SvelteKit adapters documentation for more information.
This template is designed to streamline your Svelte development workflow. Feel free to explore and customize it to suit your project needs! 🚀