-
Book Overview & Buying
-
Table Of Contents
Full-Stack React, TypeScript, and Node - Second Edition
By :
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, we are going to take our in-memory Express API and transform it into a real, database-backed application using PostgreSQL and Prisma. By the end, your data will survive restarts, crashes, and deployments.
In this chapter, we are going to cover the...
Change the font size
Change margin width
Change background colour