Node.js TypeScript and PostgreSQL setup using TypeORM library | Tigran in Tech
HTML-код
- Опубликовано: 9 окт 2024
- Node.js TypeScript connection with PostgreSQL over TypeORM, by walking over a specific parts of configuration and Database Model creation.
I'm using this combination for almost all of my Node.js projects and TypeORM is very consistent, providing high quality releases without any braking changes and very good documentation.
We are choosing PostgreSQL as a main DB communication, but TypeORM allows to have other SQL based databases like MySQL, SQ Server etc...
Github Repository:
github.com/tig...
-----
Website: tigran.tech
Twitter: / tigranbs
Medium: / tigranbs
Github: github.com/tig...
I was unable to connect to the PostgreSQL database, create tables, nothing.
The strange thing that I have TypeORM installed globally, I tried with MySQL I was able to connect, create tables, but using PostgreSQL database I couldn't.
I thought there was something wrong with my PostgreSQL installation, so I tried with the Laravel + PostgreSQL database, I was able to connect, create tables.
After I saw this video, I accessed its repository, cloned it and finally got the connection, creating tables.
Thank you very much for your contribution, I hope your channel is very successful, + 1 written.
Superb video Its the best one for indepth typeORM
Putting Db try Connection fn, in an express middleware was a nice tip. Thanks
Awesome, tutorial. Looking forward to seeing more tutorials on express, typescript, typeorm
Great Job!
Great videos, keep it up!
I am getting @type/node not foubd error on required, export statement, though they are in the package and node modules
Can you please show how to insert values for text[] and/or jsonb[] columns?
plz upload more videos ..
Tried this. It is not making the connection
You mean it is not connecting with Database?