NestJS with Postgres Dockerized (w/compose) | NestJS, Postgres, Docker | NestJS X Docker 02

preview_player
Показать описание
Link to Repository:

Timestamps:
00:00 Welcome and short Overview over the Video
00:48 Quick Overview over Docker-Compose
09:27 Ports in Docker
13:15 NestJS Connect with Database with TypeOrm
16:45 Create feature Module User in NestJS and create "add" and "findAll" Endpoints & save and get from Database
26:14 docker-compose up
30:20 Look at Endpoints in Postman
32:00 Finish Readme and Commit Changes

I appreciate every feedback in the comments and would be happy if you also like && subscribe :)

NestJS is used in v7.
Nodejs is used in v12.
NPM is used in v6.
Docker is used in v19.03.8
Рекомендации по теме
Комментарии
Автор

This was actually one of the very few professional tutorials in YouTube on the topic of NestJS. Thank you, this was massively helpful!

ReachingFlowFaster
Автор

this is an excellent video, i will probably watch it a dozen times over the course of what i'm doing

AliAliOxenFree
Автор

Whats the difference between returning Observable<User> and Promise<User> ?

humansaremortal
Автор

man, you are actually great at explaining. well done

codewithmarwan
Автор

thanks brother, simple tutorial and very usefull ..

adityagunawan
Автор

thank you very much for this tutorial! It helped me a lot! Keep up the good work!

gustavobraganti
Автор

Nice video! So if I understand well we dont need to npm start in nest if we do docker-compose? If I do it it says "ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...".

simonaerts
Автор

Hi Thomas i cant seem to get nest to connect
Unable to connect to the database. error: password authentication failed for user "user"

version: '3'
services:
api:
build:
dockerfile: Dockerfile
context: .
depends_on:
- postgres
command: npm run start:dev
ports:
- "8080:3000"
volumes:
- .:/app
environment:
PORT: 3000
postgres:
image: postgres:10.4
ports:
- "35000:5432"
environment:
POSTGRES_PASSWORD: password
POSTGRES_USERNAME: user
POSTGRES_DB: db
PORT: 5432

supermakdas
Автор

Hey having some difficulty with the content of the containers updating. For example if I change a round in the controller, that change is not updated in the docker container. If i query '/test' the route is not updated on localhost:3000/test.

Suggestions?

sachasmart
Автор

I like your videos a lot, very very very good quality

bouamarelouahhabi
Автор

I love your tutorial, this one inspires me to make a side project but I don't know how to put in production the docker images created (fontend, api and postgres database). I understand that it is possible with kubernetes but I don't know how. Can you help me?

timothyalcaide
Автор

really you help me a lot. please keep making NestJs videos!

elmirmahmudov
Автор

Thomas thank you 1st for making this great content and second for listening feedback I suggested you that the font size should be a little bit bigger that way we can watch the video on mobile devices more comfortably and you did so I appreciate that... keep the great videos coming 👍 🔥

carlosdelgado
Автор

Hey, good video!
Can you explain at what moment the database is being created?
Is it going to be created if you run nest start command?

vadimsheremetov
Автор

Make another video of deploye the container to AWS or share the container with team members.

praffulpanwar
Автор

Hey how do we connect it to the localhost

mrbro
Автор

Thanks Thomas, you are a life saver 🙏

fahemzoldyck
Автор

thanks a lot man. keep it. great work!

elmirmahmudov
Автор

Your tutorial is great, but your accent is bad and I can hardly understand what you say.

chenlee
Автор

This tutorial was great and so helpful! Thank you so much. In the video you talked about this being for development and something else needed for deployment. Can you please share something on what changes would be needed to deploy this code to Heroku for example?

MRjackasses
join shbcf.ru