This is really cool. SvelteKit has released "remote functions" which in my opinion gives us a great developer experience. This repository goes along with my Youtube Tutorial.
Install the dependencies:
npm install
Create a .env file with the following contents:
DATABASE_URL="postgres://root:mysecretpassword@localhost:5432/local"
Start up your docker container:
docker compose up -d
Run the migrations:
npm run db:migrate
Start the app:
npm run dev