prisma-examples
                                
                                
                                
                                    prisma-examples copied to clipboard
                            
                            
                            
                        feat(javascript/rest-sveltekit): add SvelteKit example
This adds an example of using Prisma with SvelteKit.
It is adapted from the rest-nextjs example.
Thanks for the review @ruheni! I will resolve these points over the next few days.
Hey @joshnuss, any updates on the example?
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() invocationis fixed. It was caused by thefavicon.pngusing a relative path for some reason. That caused/p/favicon.pngto 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/routesfolder structure is currently undergoing an overhaul in SvelteKit, so we might want to wait until that is released before merging this PR 
Hey @joshnuss 👋🏽
Any updates on the PR?
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
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 🙂