This is a port of an app I have been moving to different languages/frameworks. The app is Kent C. Dodds Frontend Masters Remix Workshop app.
Up to this point I have only been porting it around to different React implementations. So I thoroughly enjoyed porting this to svelte and sveltekit. The conversion of react components to svelte components alone was alone worth it.
But on top of this SvelteKit provides some really nice out of the box handling for forms and streaming. There are great benefits to using a compiler and I love it.
Things learned and used while building the app:
use:enhance
form attribute/directive)use:enhance
to the form. All I know is it worked without all the crazy react hooks and that is a beautiful.To run the app locally:
npm install
openssl rand -hex 32
in the terminal and use that value for this env variablenpx prisma db push
. You may have to run npx prisma init
first to generate the sqlite db filenpx prisma generate
npx prisma db seed
to add seed data to the dbnpm run dev
.