Working with databases
In this section, we are going to learn how to interact with a database from a Node.js application using a TypeScript library known as TypeORM. TypeORM is an object-relational mapping (ORM) library. An ORM is a tool that allows us to use objects and methods to interact with a database instead of using one of the flavors of the SQL programming language.
We are going to need a Postgres database server running in our development environment before we can implement an example. There are multiple ways to get a server up and running, but we are going to use Docker. Docker is a virtualization service that allows us to run software in standalone virtual machines known as containers. A Docker container is an instance of a Docker ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access