.NET 7 💥 -- How to containerise Web API with Docker & use PostgreSQL

  Рет қаралды 45,022

Mohamad Lawand

Mohamad Lawand

Күн бұрын

Пікірлер: 69
@mirkozaper
@mirkozaper 11 ай бұрын
52:03 thanks for video and please do video with first option (migration to run automatically)
@afonsocarvalho3124
@afonsocarvalho3124 8 ай бұрын
I need some guidance on running migrations automatically too. If you have a real project with too many tables, doing manually is very time consuming, and the migrations are already there ready to be applied. Thank you for this video.
@davidmaldonado9898
@davidmaldonado9898 9 күн бұрын
I don't understand English, but I managed to understand everything. Haha! Thank you very much, excellent tutorial. You've gained a new subscriber. I see you have a ton of great videos, and I'll be watching each one of them. Greetings from Paraguay.
@ivandrofly
@ivandrofly Жыл бұрын
11:48 Connection string 36:54: Docker compose creation 41:00 Setting the connection string on docker-compose 41:10 menitioned that he connections tringwill be auto-injected into app 50:17 : API testing tool Insomnia (like Postman) Remarks: Why the environment variable name in docker compose is not the same as in appsettings
@proffnick2405
@proffnick2405 11 ай бұрын
Thank you Lawand. Your lecture is clean, clear and concise
@100kshooter5
@100kshooter5 Жыл бұрын
Thank you so much Mohamad for such great content, have put notification on!!! Much love from South Africa!
@agustinbcu
@agustinbcu Жыл бұрын
Awesome video, I will love to see a Dev environment vs stage, and production environment; the database upgrades thru the EF core migration script, and the implications of always getting the latest version of the database. Overall well presented. Mine only advises having all the commands on an editor and copying and pasting.
@wolfVFXmc
@wolfVFXmc Жыл бұрын
Would be handy if you make a video about the migrations being run automatically
@chinmaykaviskar5757
@chinmaykaviskar5757 10 ай бұрын
Thank you so much Lawand. It's bcoz of you I was able to learn about docker and execute it. Bigg help
@jmejias00
@jmejias00 Жыл бұрын
Great video. Do you have a github repo for this tutorial?
@Shanks-at-Work
@Shanks-at-Work 11 ай бұрын
This is so helpful with step by step explanation. Thank you so much.
@alihamzaansari2012
@alihamzaansari2012 Жыл бұрын
your explanations are really understandable and with a good pace
@SingleServingMimic
@SingleServingMimic 4 ай бұрын
Amazing video! thank you so much for this. An automatic migrations tutorial would also be great, keep it up!
@stoic2454
@stoic2454 7 ай бұрын
Thank you soooooo much, I was stuck on this step, i never realized i'm using production evn and kept on thinking why i'm not getting swagger, lol
@xender2112
@xender2112 Жыл бұрын
Thank you so much. It's so useful. Especially the part where database migrations inject in the db container. If not you, instead of 1 day I'd spend 1 week or more to containerize my project.
@Ertan_Taner
@Ertan_Taner Жыл бұрын
Thank you Mohamad, ı made a compose file for my backend api + db + redis service and it's working without a problem. I am learning so many stuff from you. I used Dockerfile and wants to learn a bit about compose. Thanks so much again ^^
@MegaMaistro123
@MegaMaistro123 Жыл бұрын
you nailed it bro ربنا يجازيك كل الخير يارب
@MohamadLawand
@MohamadLawand Жыл бұрын
أمين مشكور والله
@stesvis
@stesvis 9 ай бұрын
Did you push this to some repo? Would be nice to browse the code! Thanks
@adam-xt8te
@adam-xt8te 8 ай бұрын
35:25 I stuck at this moment and I can't force API to throw those exceptions. In browser I got 404. I'll try later. Effects in the end are worth trying. Thank you for your effort
@manssternerbostrom3148
@manssternerbostrom3148 Жыл бұрын
Beautiful walkthrough!
@MohamadLawand
@MohamadLawand Жыл бұрын
Thank you! 👍
@simontouma7924
@simontouma7924 Жыл бұрын
Great video as usual!
@jesusmendoza6536
@jesusmendoza6536 Жыл бұрын
Super nice!!!!!!! Thanks How we can run migrations automatically un docker-compose.yml file?
@HilalYazbeck
@HilalYazbeck Жыл бұрын
great stuff, can you create a video about dotnet core clear architecture (onion) with a simple repository pattern and unitofwork? i would love to see your approach
@obasoroolakunle8421
@obasoroolakunle8421 6 ай бұрын
Thanks for the video. Is necessary we create Dbcontext in our app if we want connect with postgresql database?
@rogerstich7603
@rogerstich7603 Жыл бұрын
very nice Tutorial, thank you for that. One question: How to do all the Connection String Magic properly, so i dont have them inside my Dockerfile and finally in my Git Repo?
@prasangupta2978
@prasangupta2978 10 ай бұрын
Do i have to create a docker container prior to adding this
@99aabbccddeeff
@99aabbccddeeff Жыл бұрын
Thank you for such informative videos!
@oleksiihytsiv
@oleksiihytsiv Жыл бұрын
How can he actually create migrations with an empty connectionString? When I tried that, I got an error: The string argument 'connectionString' cannot be empty.
@syneticsolutions344
@syneticsolutions344 Жыл бұрын
Absolutely fantastic video, very well done!
@SonyaSakayev
@SonyaSakayev Жыл бұрын
Thanks for the detailed explanation!
@elliotaldersone4969
@elliotaldersone4969 Жыл бұрын
Great tutorial thanks a lot Mohammed
@patricksantos9309
@patricksantos9309 Жыл бұрын
Thanks, helped me with the migration
@bfxyz
@bfxyz Жыл бұрын
hey Mohamad good job.😀 I found your explanation really good some time I needed some subtitles, but even the automated subtitles were saying that is music. Doesn't matter still get >95%. Saludos Cordiales
@lifeisbeautifu1
@lifeisbeautifu1 Жыл бұрын
Amazing! Thank you! ❤🔥
@andresviera-ecuador4984
@andresviera-ecuador4984 11 ай бұрын
Good afternoon, so I have a problem starting my applicattion is this error "warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect."
@biradarsm
@biradarsm 2 ай бұрын
comment the https redirection middle ware in startup.cs, error dis appears. its a temporary solution for your local development
@raptoverdad
@raptoverdad Жыл бұрын
thanks for leaving the code in... wherever it is.
@mosheritterman3472
@mosheritterman3472 Жыл бұрын
Great tutorial! Do you have another video where you demonstrate how to deploy this to production (i.e. Azure or AWS)? Also, how would you add your docker-compose file in source control (i.e. GitHub) so that the connection string is secure?
@diegomelgar2696
@diegomelgar2696 Жыл бұрын
Hi Mohamad, Is it possible that you create a video for containerise the same application but running on HTTPS as development environment. I am facing some issues that I haven't found a proper solution. The API doesn't run because of missing certificates. After properly setup the certificates using dotnet dev-certs and dotnet user-secrets and mapping the volumes inside docker-compose I still have the problem. Thanks!
@csabagyarmathy6386
@csabagyarmathy6386 Жыл бұрын
Saved my ass, thank you!!!
@MohamadLawand
@MohamadLawand 10 ай бұрын
Thank you for your support
@shivpratapshukl1445
@shivpratapshukl1445 Жыл бұрын
Hi mo, can you make tutorial for .net microservices.
@yosterdaniel1213
@yosterdaniel1213 Жыл бұрын
I agree
@АртемБарабанов-х2б
@АртемБарабанов-х2б Жыл бұрын
Thank you very much for intersting and useful information!
@TALHAEDITS1K
@TALHAEDITS1K Жыл бұрын
One good practice (always) should be, even in demos, always use real world production code, so that even a beginner can learn the real world code, do a purpose build demo, not just for "simple demo". Don't do what 99% of other online tutors are doing (just demo purpose tutorials). There are tutorials for beginners, but not for experienced ones. Don't they need some advance level expertise? Also, can you make a demo on calling 500-1000 APIs at the same time and just wait for the ok 200 response.? What would be the best practical approach? I am asking you as you are the enterprise architectect.
@xender2112
@xender2112 Жыл бұрын
His demos are not real world projects but they are more complex than an usual demo. At least his demo in this video has database. It's enough to understand how to create and then to connect services by virtual network interface.
@bhound12
@bhound12 Жыл бұрын
Not everyone would agree with you. I got exactly what I wanted from this video, as did many other viewers. The video is concise and delivers on exactly what the title says.
@OgnjenBokic-c7e
@OgnjenBokic-c7e Жыл бұрын
Awesome video as always. Should SDK commands be executed inside a Docker container rather than within a directory on the local machine? When I try, I get a message that the SDK is not installed within the container. Thanks
@sumeshsidharth3255
@sumeshsidharth3255 Жыл бұрын
Thank you for the great video.
@barchilsaid3001
@barchilsaid3001 Жыл бұрын
Thank you so Much .
@yosterdaniel1213
@yosterdaniel1213 Жыл бұрын
Any one else getting this error at the end when sending a get request "The ConnectionString property has not been intilaized "?
@ivandrofly
@ivandrofly Жыл бұрын
vaar con = Environment.GetEnvironmentVariable(
@rustam_gasymov
@rustam_gasymov Жыл бұрын
It's powerful!! Can you say please how can i debug(in vscode) my application when I run using docker compose?? Or somebody knows? Thanks a lot
@williampuma8241
@williampuma8241 Жыл бұрын
awesome
@guillesanchez493
@guillesanchez493 Жыл бұрын
Thank you very much!!!
@ЕвгенийЗахаров-т5и
@ЕвгенийЗахаров-т5и 9 ай бұрын
Best!
@keithcarrillo8238
@keithcarrillo8238 7 ай бұрын
24:49
@shade9200
@shade9200 Жыл бұрын
You're a god
@leleca987
@leleca987 11 ай бұрын
brabooo
@RoyZASTEROiD
@RoyZASTEROiD Жыл бұрын
thank you
@creamOnDs
@creamOnDs Жыл бұрын
i think it would be better if you explain the code while showing the code, I keep moving back to where you show the code after listening to your explanation
@fkbey5756
@fkbey5756 Жыл бұрын
Thanks
@Pan_Policjant
@Pan_Policjant Жыл бұрын
dude, your face is covering most of the things you do
@Tymonello
@Tymonello Жыл бұрын
v3 :)
@alexanderbondarchuk
@alexanderbondarchuk Жыл бұрын
Thank you very much!
.NET 7  💥  - Deploy .NET Apps to Kubernetes
51:38
Mohamad Lawand
Рет қаралды 23 М.
.NET 6 - Message Broker with RabbitMQ 🐰🐰🐰
1:00:14
Mohamad Lawand
Рет қаралды 56 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
.NET 6 - Web API Caching with Redis ⏲🌐
1:04:23
Mohamad Lawand
Рет қаралды 39 М.
Deploy a .NET Core API with Docker (Step-by-Step)
36:17
Les Jackson
Рет қаралды 260 М.
Intro to Docker - A Tool Every Developer Should Know
1:16:03
IAmTimCorey
Рет қаралды 213 М.
Building a .NET 6 API Using TDD
1:38:59
Wes Doyle
Рет қаралды 148 М.
Pupin’s WEB3 Challenge Workshop: 05 Full Stack Dapp
46:56
Docker Compose with .NET Core & SQL Server (Step by Step)
1:08:15
Les Jackson
Рет қаралды 105 М.
Writing My Own Database From Scratch
42:00
Tony Saro
Рет қаралды 263 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН