This is a good one! I walk through hooking up a Dockerized Mongodb instance to a SvelteKit application. Though this works exactly the same with the cloud version. I show what you need to install, how to setup and import your URI (another video link below for more on environment variables in SvelteKit). I show how to fix serializing the mongo _id field if you need to keep that value. I show how to load data into your app. I also show how to use projections to speed up your Mongodb calls to make your application faster! I hope you find this helpful!
My channel membership is live check it out here!:
/ @consultingninja
Membership perk video:
• I launched a chatbot with my channel membe...
Need help? visit https://www.consultingninja.tech
Check out my channel @ConsultingNinja for more videos like these.
Source Code available here:
https://github.com/consultingninja/mo...
Mongo DB Projection Docs:
https://www.mongodb.com/docs/drivers/...
Environment Variable Video:
• SvelteKit | $env module | how to use .env ...
SvelteKit Sandbox:
https://learn.svelte.dev/tutorial/wel...
SvelteKit Docs:
https://kit.svelte.dev/