Skip to content

Implement Database

Masanori Ohgita edited this page Mar 4, 2023 · 4 revisions

Database

Connect your backend (NestJS) application to database such as MySQL, PostgreSQL, SQLite and others.

Summary

Our angular-nest template provides as close as possible to the standard NestJS project structure.

Therefore, database connection can be done according to the standard NestJS method.

https://docs.nestjs.com/techniques/database

NOTE

Since angular-nest template was structured with a Monorepo with using npm workspaces, YOU NEED to add -w server parameter when you executing npm install command for your backend application.

e.g. $ npm install -w server @nestjs/typeorm typeorm mysql2

Clone this wiki locally