prisma-examples icon indicating copy to clipboard operation
prisma-examples copied to clipboard

feat(javascript/rest-sveltekit): add SvelteKit example

Open joshnuss opened this issue 3 years ago • 3 comments

This adds an example of using Prisma with SvelteKit.

It is adapted from the rest-nextjs example.

joshnuss avatar Jul 06 '22 05:07 joshnuss

Thanks for the review @ruheni! I will resolve these points over the next few days.

joshnuss avatar Jul 15 '22 17:07 joshnuss

Hey @joshnuss, any updates on the example?

ruheni avatar Aug 03 '22 20:08 ruheni

Hey @ruheni,

I fixed a few things:

  • Link color was updated.
  • Added the seed script in the package.json file to match the instructions in the README
  • The error Invalid prisma.post.findUnique() invocation is fixed. It was caused by the favicon.png using a relative path for some reason. That caused /p/favicon.png to be fetched which caused an error.

A few notes:

  • The vite error doesn't happen on my machine, but I think we should be using vite 3. so i'll update it.
  • The src/routes folder structure is currently undergoing an overhaul in SvelteKit, so we might want to wait until that is released before merging this PR

joshnuss avatar Aug 05 '22 09:08 joshnuss

Hey @joshnuss 👋🏽

Any updates on the PR?

ruheni avatar Oct 14 '22 10:10 ruheni

Hi @ruheni,

I've not had time to complete it.

Feel free to close it, and I'll re-open it when I have some free time.

Best, Josh

joshnuss avatar Oct 17 '22 02:10 joshnuss

Hey @joshnuss

Sounds good. If you need any help, don't hesitate to give me a ping.

Looking forward to the example when you get the time to continue with the PR 🙂

ruheni avatar Oct 25 '22 09:10 ruheni