June 2026
Intermediate to advanced
626 pages
13h 22m
English
In the previous chapters, we built Express APIs that could receive and respond to HTTP requests. Everything worked fine. We created users, fetched posts, sent JSON responses. But here is the thing. Try restarting the server. Go ahead, press Ctrl+C and run it again. Where did all your data go? Gone. Vanished. Because it was living in a TypeScript array in memory, and memory does not survive restarts.
This is obviously not how real applications work. When you sign up for a service, you expect your account to still be there tomorrow. When you publish a blog post, you expect it to survive a server deployment. So, we need a place to persist our data, and that place is a database.
In this chapter, ...
Read now
Unlock full access