Svelte | Real world register form example using SvelteKit and Mongo!

Опубликовано: 09 Апрель 2026
на канале: Consulting Ninja
3,422
72

I put this together in response to a many requests for more complicated pieces of code. This video requires a mongodb! I go through the markup to make a solid Svelte form, then tie it to a back end form action. Then I show validating the form for criteria and displaying errors in our markup. Lots of great topics covered here!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...  

Updates (these are included in repo) I noticed a few minor things after editing:
1. SignUpResponse password should start as empty string "" , set just prior to sending to the mapper function and then reset to empty string just after that.
2. In the markup +page.svelte file the url input value from the form should be form?.urlChoice on line 28.

Need help? visit https://www.consultingninja.tech
Check out my channel ‪@ConsultingNinja‬ for more videos like these.

Source code with improvements here:
https://github.com/consultingninja/sv...

Mongodb Docker setup video here:
   • mongodb | docker & cloud setups  

Setup Env File Video here:
   • SvelteKit | $env module | how to use .env ...  

Hookup Mongodb to SvelteKit video here:
   • SvelteKit | Mongodb connect | using projec...