This is a modern web application built with Astro and Svelte 5.
/
āāā src/
ā āāā components/
ā ā āāā Counter.svelte
ā āāā pages/
ā āāā index.astro
āāā astro.config.mjs
āāā package.json
āāā svelte.config.js
āāā tsconfig.json
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally before deploying |
npm run astro ... |
Run CLI commands like astro add , astro check |
This project uses Svelte 5's new runes syntax. Key features include:
$state()
for reactive state$derived()
for computed values$effect()
for side effectsonclick
instead of on:click
)npm install
npm run dev
http://localhost:4321