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 ...

Get Learning TypeScript 2.x - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.