Deploy Express Application using Netlify for Free - Serverless Functions | 2024 UPDATE

  Рет қаралды 2,591

The Dev Corner

The Dev Corner

Күн бұрын

Deploy express.js full tutorial 2024. Express.js backend app using serverless-http netlify-lambda. Learn Netlify in 2024.
Support us: ☕ ko-fi.com/thedevcorner
Source code:
Starter: github.com/wibawaarif/express-netlify-starter
📍My Blog:
www.wibawaarif.com/
00:00 Introduction
00:22 Required Libraries Installation
01:10 Setup Project & Installation
03:26 Coding
06:04 Deployment Configuration
07:07 Outro
#netlify #nodejs #expressjs #deployment

Пікірлер: 19
@user-gc7kp3vg4y
@user-gc7kp3vg4y 3 ай бұрын
wow thanks bro
@kadirbozkurt2412
@kadirbozkurt2412 Ай бұрын
I build my react/node project. If I choose my dist directory as publish directory while deploying, it doesnt call the functions on front end. If I don't choose directory for publish, I see 404 error of netlify. Any solution for that?
@danielmayo4315
@danielmayo4315 2 ай бұрын
the video is great just zoom in a little
@thedevcorners
@thedevcorners 2 ай бұрын
Appreciate for the input!
@sanketmane5838
@sanketmane5838 21 күн бұрын
netlify-lamda has already been deprecated. How to do it without netlity-lamda ?
@harshasuraweera
@harshasuraweera 2 ай бұрын
Great tutorial... By the way I have a question, is that route prefix "/.netlify/functions/" a must? PS: Found that it can be solved by adding a redirect rule to netlify.toml like this [[redirects]] force = true from = "/api/*" status = 200 to = "/.netlify/functions/api/:splat"
@thedevcorners
@thedevcorners 2 ай бұрын
Yes, it's a must! Thanks for the addition!
@harshasuraweera
@harshasuraweera 2 ай бұрын
@@thedevcorners np.. seems above rule can only be used with express apps.
@RajeshTechForge
@RajeshTechForge 20 күн бұрын
Good Tutoriall but too annoying to see the code. 1. Just zoom In the editor, 2. Add a soft bg music.
@thedevcorners
@thedevcorners 19 күн бұрын
Appreciate it man!
@Bollyspeedup
@Bollyspeedup 2 ай бұрын
I have actually already made the project in github so can you help me with that
@thedevcorners
@thedevcorners 2 ай бұрын
Glad to hear that! have you followed the instruction in the video?
@Bollyspeedup
@Bollyspeedup 2 ай бұрын
@@thedevcorners I already have made the repo and project before
@juanpasten6077
@juanpasten6077 2 ай бұрын
It doesnt' work for me but thanks!
@thedevcorners
@thedevcorners 2 ай бұрын
Can you give the details why it didn't work?
@juanpasten6077
@juanpasten6077 2 ай бұрын
@@thedevcorners My men! It ended working!! Two things: my gratitude to you for you willing to help. With that I was going to make a good explanation to get help by you and, in the process, I fix it. Now I was trying to make a good explanation on why it was break and I get with this: ▬ If you use a template string plus some variables, it would not work. I had something like this « const ROUTES = { MOVIES: `movies`, HOME: `/` } app.get(`/.netlify/functions/app/${ROUTES.MOVIES}/:id`, fn) » That's going to throw an error. This is how I fix that: « const PREFIX_ROUTES = "/.netlify/functions/app" const ROUTES = { MOVIES: `${PREFIX_ROUTES}/movies`, HOME: `${PREFIX_ROUTES}/` } app.get(ROUTES.HOME, fn) app.get(`${ROUTES.MOVIES}`, fn) app.get(`${ROUTES.MOVIES}/:id`, fn) » Thanks for all =)!
@juanpasten6077
@juanpasten6077 2 ай бұрын
@@thedevcorners I though I made a reply but it was not the case. The problem was the use of template strings, I had something like this: `/.netlify/functions/app/${ROUTES.MOVIES}/:id`. That doesn't work for I don't know which reason. But if I extract the prefix into other variable it ended working. Like this: «const ROUTES_PREFIX = "/.netlify/functions/app"; const ROUTES = {MOVIES: `${ROUTES_PREFIX}/movies`}; app.get(`${ROUTES.MOVIES}/:id`, fn)». So, thanks so much for your willing to help ♥
@muratyonev6000
@muratyonev6000 Ай бұрын
It does not work. waste of time
@thedevcorners
@thedevcorners Ай бұрын
Thank you :) at least it works for me.
Netlify Serverless Functions with Netlify Dev
12:17
James Q Quick
Рет қаралды 29 М.
When RESTful architecture isn't enough...
21:02
Dreams of Code
Рет қаралды 263 М.
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 9 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 58 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,4 МЛН
Turborepo 2.0 - New UI + Watch Mode?!
6:09
Anthony Shew
Рет қаралды 7 М.
I Never Want To Build Authentication Any Other Way
2:03:20
Elliott Chong
Рет қаралды 17 М.
ExpressJS files (Backend) deployment on netlify
12:00
Wanglen Soram
Рет қаралды 402
The Story of Next.js
12:13
uidotdev
Рет қаралды 559 М.
How To Hide API Keys Using Netlify
56:55
Dan Fletcher
Рет қаралды 17 М.
Create A Serverless Netlify Function In 10 Minutes
15:46
jondjones
Рет қаралды 2,2 М.
Лучший браузер!
0:27
Honey Montana
Рет қаралды 1 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 484 М.
Vision Pro наконец-то доработали! Но не Apple!
0:40
ÉЖИ АКСЁНОВ
Рет қаралды 50 М.
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 11 МЛН