A few days ago, I shared on github a complete full-stack application built with Svelte/Sapper on the frontend and Node/Express on the backend — check out the live demo.
This application is split into two projects: the frontend and the backend. The frontend communicates with the backend through its API to store data into the database and perform authentication/authorization, etc.
This project covers things like:
- Authentication/Authorization with JWT
- Maintaining logged-in user data with sessions and cookies
- Communicating with a backend API
- Handling errors
- Loading states
- Preloading data
- Prefetching data
- Rendering nested components recursively
- More stuff
If you're interested in how this appilcation was built, stay tuned for the blog series that I'm going to start very soon. In this series, you'll learn how to build the same demo from scratch!
For updates on the blog series, follow me on twitter @tahazsh.