Тёмный

How to Build a REST API with Javascript | Node and Express JS Basics Tutorial 

Dave Gray
Подписаться 318 тыс.
Просмотров 8 тыс.
50% 1

Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
Learn how to build a REST API with Javascript in this basics tutorial. Node and Express JS provide an easy way to build RESTful services. Understanding what a REST API is along with HTTP methods and status codes is an important part of backend web development.
Subscribe ➜ bit.ly/3nGHmNn
JavaScript for Beginners: Full Course (8 hours): • JavaScript Full Course...
How to Build a REST API with Javascript | Node and Express JS Basics Tutorial
🔗 Source Code: github.com/gitdagray/rest_api...
(0:00) Intro
(0:11) Dev Setup with Node, NPM Packages, and Initial Declarations
(7:01) Adding Middleware with app.use()
(12:46) Adding and handling routes, HTTP methods, Accept headers, and Responses
🔗 MDN CORS (Cross-Origin Resource Sharing): developer.mozilla.org/en-US/d...
✅ Follow Me:
Twitter: / yesdavidgray
LinkedIn: / davidagray
Blog: yesdavidgray.com
Reddit: / daveoneleven
Was this tutorial about how to build a REST API with JavaScript helpful? If so, please share. Let me know your thoughts in the comments.
#rest #api #javascript

Наука

Опубликовано:

 

4 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 года назад
This tutorial will help you build a REST API even if you have no prior experience with Node JS and Express. You will learn the basics of routing to different endpoints, how to respond to Accept headers, and how to send different types of data responses. I have also provided links to other basic information about APIs in the project index file. The link to the GitHub repo is in the description and can be launched to Glitch.com with the click of a button. Just learning Javascript? Check out my 8 hour beginners tutorial: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-EfAl9bwzVZk.html
@blaircfleming
@blaircfleming 3 года назад
Can't wait to get tucked into this one Dave, your previous work has been fantastic!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 года назад
Thanks Blair! 🙏
@viniciusm.m.7822
@viniciusm.m.7822 3 года назад
Great teaching!! Brazil here! :D
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 года назад
Thank you! 😃
@marcod.643
@marcod.643 3 года назад
Great content as always! Thank you so much.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 года назад
You're welcome!
@zyt2712
@zyt2712 2 года назад
thumb up before watching Dave's video
@rangabharath4253
@rangabharath4253 3 года назад
Awesome as always 👍😀
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 года назад
Thanks again!
@ahmad-murery
@ahmad-murery 3 года назад
That was very informative, Unfortunately, this time I couldn't find what to comment about 🙃, maybe I need to watch the video one more time 🤔 So, just wanted to say: Thanks Dave, you're doing great as always.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 года назад
Thank you, Ahmad 🙏
@Jawad_Siddiqui
@Jawad_Siddiqui 2 года назад
Thank you sir!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 года назад
You're welcome! 💯
@CodeWithTomi
@CodeWithTomi 3 года назад
Nice video
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 года назад
Thanks Tomi! 🙏
@nureyna629
@nureyna629 2 года назад
Thanks a lot. Very informative.. One question on the last example, why you set parameters and their values going to get method ?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 года назад
Hello, I made this tutorial nearly a year ago. Do you have a timestamp for where the example you are referring to is in the video? It would help me know where to reference. Thanks!
@nureyna629
@nureyna629 2 года назад
@@DaveGrayTeachesCode Yes, at 46:17
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 года назад
From what I see at that timestamp, we are sending a GET request via Postman. It accepts parameter, and we are providing 3 parameters. The endpoint "echo-all" just returns whatever parameters we send it in this basic example. I hope that helps!
@nureyna629
@nureyna629 2 года назад
@@DaveGrayTeachesCode ahaa, ok, thanks alot🎉
@mohammedkhaja
@mohammedkhaja 3 года назад
hello can you build a text editor app just like notepad using javascript. i am try but it is giving a lot's of errors. so can you make a video on making notepad app using javacsript please. thanks in advance.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 года назад
Thanks for the suggestion! 🙏
Далее
How to build a REST API with Node js & Express
58:40
Просмотров 1,7 млн
Looks realistic #tiktok
00:22
Просмотров 3,1 млн
1.4: JSON - Working with Data and APIs in JavaScript
16:22
Express JS (Node REST API) Crash Course
37:42
Просмотров 7 тыс.
Must Know REST API Stack | MongoDB, Node & Express
51:57
8 Javascript Solutions You HAVE TO KNOW
34:20
Просмотров 7 тыс.
What is REST API?
15:41
Просмотров 78 тыс.
How the Heck Do API Keys Work?
39:43
Просмотров 44 тыс.
Build a RESTful API with Fastify, Prisma & TypeScript
1:21:35
Learn Express JS In 35 Minutes
36:03
Просмотров 764 тыс.
PA-RISC рабочая станция HP Visualize
41:27
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
When you have 32GB RAM in your PC
0:12
Просмотров 297 тыс.