todoapp-svelte-dragulajs

Todoapp Svelte Dragulajs

Membuat ToDo App sederhana menggunakan Svelte + Bulma + DragulaJS

Get started

Kalo pen ngerun programnya, tinggal kek gini aja:

cd todoapp-svelte-dragulajs
npm install

...then start Rollup:

npm run dev

trus cekidot ke localhost:5000, kamu bakalan bisa melihat aplikasimu telah berjalan. kalo pengen ngedit source codenya, ada di folder src, lalu save aja, nanti bisa dilihat perbedaannya.

Kalo kamu pake VSCode, aku rekomendasikan untuk menginstall extensionnya terlebih dahulu, biar mantab.. Svelte for VS Code.


Petunjuk bawaan dari SvelteJS

Building and running in production mode

To create an optimised version of the app:

npm run build

You can run the newly built app with npm run start. This uses sirv, which is included in your package.json's dependencies so that the app will work when you deploy to platforms like Heroku.

Single-page app mode

By default, sirv will only respond to requests that match files in public. This is to maximise compatibility with static fileservers, allowing you to deploy your app anywhere.

If you're building a single-page app (SPA) with multiple routes, sirv needs to be able to respond to requests for any path. You can make it so by editing the "start" command in package.json:

"start": "sirv public --single"

Using TypeScript

This template already with Typescript

Deploying to the web

With Vercel

Install vercel if you haven't already:

npm install -g vercel

Then, from within your project folder:

cd public
vercel deploy --name my-project

Top categories

Loading Svelte Themes