Menu

# Week 10 -- Task 1: Connecting a NestJS Tasks API to PostgreSQL with TypeORM
πŸ“°

# Week 10 -- Task 1: Connecting a NestJS Tasks API to PostgreSQL with TypeORM

DEV Community: postgresΒ·koushikmayaΒ·about 2 hours ago
#UJtdQTlG
#devtopostgresql#devto#dev#tasks#task
Reading 0:00
15s threshold

Introduction

Until now, the Tasks API stored its data in memory. That was useful

while learning NestJS because we could focus on controllers, services,

modules, and dependency injection without worrying about a database. The

limitation is that in-memory data disappears when the application

restarts.

For this task, I moved the Week 8 Tasks API to PostgreSQL using

TypeORM . The goal was to keep the API structure familiar while

replacing temporary storage with persistent database storage.

Implementation: week-10/Task-01/nest-tasks-api/ . The Week 8

implementation remains separate and unchanged.

What the API does

The API manages users and the tasks that belong to them.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.