From the course: Nest.js Developer Lab 2026: Build a Robust API with Authentication, Articles, and User Profiles
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Configuring database - Nest.js Tutorial
From the course: Nest.js Developer Lab 2026: Build a Robust API with Authentication, Articles, and User Profiles
Configuring database
In this video, we will configure our Postgres database inside our application. And unfortunately, there are lots of ways how we can do it. So let's check this out. The first step here is to configure TypoARM. So what is it? Here I opened the official website TypoARM.io. And as you can see here, TypoARM is an ORM, which can be run in different places, for example, in Node. And this is what is interesting for us. we can use it with TypeScript and JavaScript. And if you don't know what is ORM, this is Object Relational Mapping, which actually means that this is some kind of wrapper for our database, so we can work easier with database. And also for example TypeORM supports different databases. And actually when we're writing code using TypeORM, this wrapper, then we can use any database underneath that we will specify. And this is really amazing. And as you can see here is the official website of NestJS and NestJS works with different types of ORMs. So here you can see SQLite, TypeORM…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.