TypeORM Setup
Explore step-by-step how to set up TypeORM in a NestJS project, including creating a starter codebase, Dockerizing PostgreSQL, defining entities, and configuring your app module to connect and manage the database securely and efficiently.
NestJS is a Node.js framework or library. It’s unique in that it ships a lot of libraries for difficult tasks such as cron jobs, authentication, sockets, and so on, improving the developer experience. It’s highly modularized and well-structured from the ground up, which makes it one of the best choices for many back-end engineers.
In this lesson, we’ll go through five different steps to set up the codebase.
Create a starter project
From the official NestJS GitHub repository, we can clone a starter project.
Tip: We have a Single-page application (SPA) widget with all the configurations and setups that can be used to practice.
With our local setup, we can now open the application in the browser on localhost:3000.
Install npm packages for TypeORM
We’ll install the ...