Express Middleware Nedir? Nasıl Kullanılır?

preview_player
Показать описание
Bu videoda, Express'in en önemli prensibi olan middleware konusundan bahsediyoruz. Express middleware nasıl oluşturulur? Kullanıcıdan gelen istekler adım adım nasıl işlenir? Hata işleme (error handling) middleware nasıl yazılır?

#react #reactjs #reactdersleri #reacttutorial
Рекомендации по теме
Комментарии
Автор

Hocam çok net çok anlaşılır anlattın tüm seriyi emeğine sağlık

the.batron
Автор

Tane tane kodu yazarken anlatmanız harika olmuş, sondaki kısa özet de çok iyiydi, çok faydalı bir video teşekkürler, .

Minowux
Автор

tesekkurler cok ogretici bi video oldu. affiniza siginarak sadece sondaki if else seklinde yapilan algoritma yetersiz geldi. Bir form yapiyoruz ve 10 tane input var diyelim if kullanmamiz dogru olmaz

bubbanstix
Автор

Great video bud!

I have a question - What's the best way to pass data from one middleware to the next?

My particular scenario is that i'm using Express to make a shopping cart that uses Redux (to manage the state of my cart, products etc) & EJS to render views.

I make an async call to an endpoint (Stripe in this case - where i create products/manage payments) and get back an array of product objects. I want to be able to make changes in the product obj i get back then pass it to the next middleware function to dispatch actions => reducer & finally render the products in my view.

What i'm doing at the moment is using res.locals to pass data which works perfectly fine but is there a better way of doing this?

TheInfamousAlpha
Автор

Styled Components sektörde çok kullanılıyor mu? Videolarınız çok öğretici :)

mustafaemin
Автор

hocam middleware'ler next yaparak bir sonrakini çalıştırır dedik burada sıkıntı yok anladım fakat aklıma şu takıldı: ilk middleware nasıl çalışıyor ?

nsh
Автор

Hocam restApi yapımda bulunan resimleri farklı uyglamalarımdada kullanmak istediğimde resimlere ulaşamıyorum .... bu sorunu nasıl aşabilirim

theaxacall
Автор

"req.body undefined" diyor siteye girince nasıl düzeltirim.

berkaypnaroglu