Тёмный

Build a Harry Potter API with Node.js, Express.js, and Dynamo DB 

James Q Quick
Подписаться 201 тыс.
Просмотров 29 тыс.
50% 1

Let’s create our very own Harry Potter API. We’ll use Dynamo DB as our database and then Node and Express for our server. We’ll grab Harry Potter character data from an existing API and copy it over to our own Dynamo DB.
Along the way, we’ll talk about a few different topics.
- CRUD routes in Node/Express
- Promise.all for optimizing async requests
- Testing API endpoints in Postman
Follow Brian Morrison RU-vid - bit.ly/brianmorrisonyt
My New Podcast - bit.ly/compressedfm
The Source Code on Github - bit.ly/nodehpapi
Harry Potter API - hp-api.herokuapp.com/
00:00 - Intro
00:20 - Community Shoutouts
01:25 - Resources
02:25 - DynamoDB Setup
05:50 - Code Setup and Dependencies
06:50 - Setup CRUD Operations for Dynamo in Nodejs
17:15 - Seed the DB with HP Info
22:15 - Setup Express App
23:25 - Create CRUD Routes in Express
29:10 - Testing in Postman
STAY IN TOUCH 👋
Newsletter 🗞 - www.jamesqquick.com/newsletter
Live streams on Twitch 🖥️ - / jamesqquick
Follow me on Twitter 🐦 - / jamesqquick
Compress.fm Podcast - compressed.fm
QUESTIONS...?
Join the Discord Server 💬 - / discord
Want to know what hardware and software I use? www.jamesqquick.com/uses
Learn Web Development 📖 - www.jamesqquick.com/courses

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

 

20 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 83   
@brianmmdev
@brianmmdev 3 года назад
Hey I know that guy! 😁 Thanks for the shout out, great video!
@banfio64
@banfio64 2 года назад
thank you, used this guide to help create an api for work. finding guides to help work with aws is always clutch
@harleyspeedthrust4013
@harleyspeedthrust4013 3 года назад
dood i love these videos and express and aws are fantastic, two of my favorite technologies
@soulfulmusic4037
@soulfulmusic4037 2 года назад
Thank You soo much sir! You saved me big time. Really a great tutorial and easy to grasp crud operations.
@syaefulbahri5315
@syaefulbahri5315 Год назад
Thanks James, this is by far the most comprehensive real case study utilizing DynamoDB, It's been a year you posted this video, and I just find out today. Very helpful video. I'm struggling to go though their official documentation, maybe I'm just to lazy to dig it more ha ha.
@JamesQQuick
@JamesQQuick Год назад
Wow, so glad you found this helpful!
@sanketpatel2972
@sanketpatel2972 Год назад
Really awesome video, to the point explanation helped a lot in learning. There are changes in AWS console but easy to figure out.
@marcod.643
@marcod.643 3 года назад
Great contents! Looking forward for the second video on how to get hosting for the app.
@JamesQQuick
@JamesQQuick 3 года назад
So glad to hear that :)
@daverd6434
@daverd6434 3 года назад
You make things look very simple... thank you for sharing your knowledge. Hosting the app please!!
@onomatopeia891
@onomatopeia891 3 года назад
Thanks for the tutorial! Can you let us know what VSCode extensions are you using for this project? Would love to see also how you deploy the Node API and also how to create snippets in VSCode.
@charchitdhawan8907
@charchitdhawan8907 2 года назад
Superb Explaination and knowledge.. thanks for your videos
@RogertCastillo
@RogertCastillo 2 года назад
Thanks my friend, you explain clearly.
@tombrecht9654
@tombrecht9654 3 года назад
Great video, thank you! I would love to see it hosted.
@VesicantRedds
@VesicantRedds 2 года назад
Terrific demo. 10/10 video
@adamdahan9506
@adamdahan9506 Год назад
This was a great video :) thanks!
@jimmyj.6792
@jimmyj.6792 3 года назад
Always so cool to follow you and your content. Really great job thanks a lot for your job and the way to present it so simply 😀 I don’t remember if you present in the vscode plugin but what is the plugin about size of dependency ? Thanks a lot 😀
@ahoymatey1234
@ahoymatey1234 2 года назад
Excellent tutorial!
@udaysaikiran4774
@udaysaikiran4774 3 года назад
Video Explanation is good. Yes, we want to a video on hosting this application on the server.
@JamesQQuick
@JamesQQuick 3 года назад
Awesome!!
@NandeepBarochiya-cr2mf
@NandeepBarochiya-cr2mf Месяц назад
00:02 Creating a Harry Potter API using Node.js, Express.js, and DynamoDB 01:53 Setting up DynamoDB in AWS for Harry Potter API 05:39 Setting up project dependencies and environment variables for working with AWS SDK 07:38 Setting up AWS credentials for Dynamo DB access. 11:33 Using nodemon to reload node applications. 13:37 Setting up Harry Potter object in API with DynamoDB integration 17:20 Creating a seed function to populate database 19:06 Using promise.all to handle asynchronous requests 22:26 Creating basic express application with endpoints 24:06 Creating endpoints to query characters and return as JSON 27:48 Setting up CRUD endpoints in Express.js for handling character records. 29:30 Setting up a DynamoDB database and performing CRUD operations.
@bens9962
@bens9962 2 года назад
Awesome tutorial! Btw would you mind sharing which VScode theme you are using?
@santra528
@santra528 3 года назад
Would love to see a video on deploying this stuff in Heroku or any other platform as per your preference !
@JamesQQuick
@JamesQQuick 3 года назад
Awesome! In the backlog!
@phantazzor
@phantazzor 2 года назад
@@JamesQQuick yeah how do you deploy it on aws!
@CodingJourney
@CodingJourney 3 года назад
Excellent!! 🙏💙💙🙂
@DonovanChilders
@DonovanChilders 3 года назад
Very nice; thanks! I would love to see a follow-up on how to host the app.
@JamesQQuick
@JamesQQuick 3 года назад
Awesome! To the backlog it goes :)
@programmercouple
@programmercouple 3 года назад
Brian Morrison, subscribed! Wingardium Leviosa
@JamesQQuick
@JamesQQuick 3 года назад
Yasss!!
@Thisarusaduranga
@Thisarusaduranga 2 года назад
Great video, thank you
@JamesQQuick
@JamesQQuick 2 года назад
Glad you liked it!
@3djdavid
@3djdavid 2 года назад
Thanks a lot!
@ghury1
@ghury1 8 месяцев назад
do you have any video on how to use query function querying by secondary global index?
@eliaschampi
@eliaschampi 2 года назад
great video man, which vscode theme are you using please :)
@arifulalamarif3748
@arifulalamarif3748 3 года назад
Most simplified way of learning dynamoDB with node API. 💖 Can you share searching and pagination? It'll be very helpful!! Thank you!!
@JamesQQuick
@JamesQQuick 3 года назад
OOOh pagination is something i really need to do a video on!
@arifulalamarif3748
@arifulalamarif3748 3 года назад
@@JamesQQuick I'll wait for this!! 👀
@yogpanjarale
@yogpanjarale 3 года назад
Looking forward to see how to host this
@davigalilei9749
@davigalilei9749 2 года назад
Hi, I've built my own api following your steps.
@JamesQQuick
@JamesQQuick 2 года назад
Awesome. Good stuff!
@goldmikanik8274
@goldmikanik8274 Год назад
Amazing, just one question plz In your express put request why you did character.id = id? What's the purpose or do you need it?
@junaiderade3975
@junaiderade3975 Год назад
this is the tutorial EVERYONE has been looking for lol
@Klausi-uq4xq
@Klausi-uq4xq 3 года назад
I used the same HP API for a Flutter Project..i fetched the Data to a Hive DB localy in the App and then provided it to the User
@JamesQQuick
@JamesQQuick 3 года назад
Very nice!! Great minds :)
@ericzorn3735
@ericzorn3735 3 года назад
Great video. Instead of Heroku, which is very easy. I would recommend doing a video on how to containerize this app with docker and possibly deploy the docker image with kubernetes to either ec2 or eks to stay with the AWS theme
@JamesQQuick
@JamesQQuick 3 года назад
hmmm, that's an interesting thought. It's a little out of my realm right now though. I don't have any docker or kubernetes experience
@ericzorn3735
@ericzorn3735 3 года назад
@@JamesQQuick completely understandable. Heroku is where I often host, due to it being so powerful and easy
@ericzorn3735
@ericzorn3735 3 года назад
Even Vercel might be interesting
@ghury1
@ghury1 8 месяцев назад
hi, can you share your vs code settings file? which theme and extensions do you have in it?
@schadrackbotombe9899
@schadrackbotombe9899 Год назад
too cool
@idrusalkaafi5109
@idrusalkaafi5109 3 года назад
what if we want to use more than 1 table?
@muhammadjawad7604
@muhammadjawad7604 3 года назад
Hey can you tell which font you are using
@ghury1
@ghury1 8 месяцев назад
does anyone know how to resolve "UnrecognizedClientException: The security token included in the request is invalid." ?
@prasangsinghal7887
@prasangsinghal7887 3 года назад
Nice tutorial indeed. I have seen people doing node api tutorials using mongo only. Glad to see you used DynamoDB and so I learnt something new today. And yes, we would love to watch deployment tutorial :). Is there anything like mongoose for DynamoDB?
@JamesQQuick
@JamesQQuick 3 года назад
What do you mean anything like mongoose for dynamo? Like mongoose in what way?
@prasangsinghal7887
@prasangsinghal7887 3 года назад
@@JamesQQuick I mean we have mongoose for mongodb which makes it easy for us to define schemas and what not. Do we have something similar for DynamoDB as well?
@JamesQQuick
@JamesQQuick 3 года назад
@@prasangsinghal7887 I guess I consider the aws package used in the video to be fairly simple, but probably not as detailed as mongoose. Outside of the aws package, I'm not sure
@prasangsinghal7887
@prasangsinghal7887 3 года назад
@@JamesQQuick Okay. Thanks for replying. 😀
@anythgofnthg154
@anythgofnthg154 2 года назад
There’s an ORM for DynamoDb called dynamoose which is inspired by mongoose. Haven’t used it but I’m interested to learn it.
@JavierCarrion
@JavierCarrion 3 года назад
Yes a follow-up. I would to know how to host it.
@JamesQQuick
@JamesQQuick 3 года назад
Sweet. Adding it to the backlog :)
@codaq4043
@codaq4043 Год назад
im getting a validation error for the .get() can anyone help me with this
@viier5646
@viier5646 2 года назад
what is this color theme?
@dileepdilraj5254
@dileepdilraj5254 3 года назад
Namaste James,This is dileep dilraj from india.Actually I want to scrap a website which asking login to scrap details but the problem is to request the website "we have to now what is in the form" here I cant see details I have to fill in the form and it showing in the form ids: (number) ,Could you please help me to solve this problem.
@eversoncarvalholima
@eversoncarvalholima 2 года назад
Pls show me how to host in AWS
@DavidWoodMusic
@DavidWoodMusic 2 года назад
Great intro do Dynamo DB but the lack of promise handling here during the method building phase is nutty.
@JamesQQuick
@JamesQQuick 2 года назад
Great feedback!
@DavidWoodMusic
@DavidWoodMusic 2 года назад
@@JamesQQuick Obviously the promises are handled in the actual API calls, but I think it could be nice to include how to handle them when testing your database methods so people aren't left with a .then(r => console.log(r)) when they are calling their functions to test them. Really great and solid tutorial though dude. For real. I've been a developer for about 4 years now and still got a lot out of it. Big ol' fatty sub from me my friend. Kisses.
@domsbuhendwa924
@domsbuhendwa924 3 года назад
Hi James, great video 👍👍 can you share what’s vs code you use in this video
@JamesQQuick
@JamesQQuick 3 года назад
What theme you mean?
@domsbuhendwa924
@domsbuhendwa924 3 года назад
@@JamesQQuick i mean your visual studio code theme
@JamesQQuick
@JamesQQuick 3 года назад
@@domsbuhendwa924 I think that was the codeSTACKr theme!
@domsbuhendwa924
@domsbuhendwa924 3 года назад
@@JamesQQuick Thanks
@arifarslanturk2951
@arifarslanturk2951 3 года назад
Why we need rest api routes we have already dynomo client
@JamesQQuick
@JamesQQuick 3 года назад
Are you talking about client to use on the frontend? You won’t want to have your private credentials in the browser.
@29namankumar29
@29namankumar29 3 года назад
Second
@JamesQQuick
@JamesQQuick 3 года назад
Good job! Lol
@29namankumar29
@29namankumar29 3 года назад
@@JamesQQuick Sir I'm a big fan of you! I love your videos! I'm glad you commented on my comment... Lots of Love ❤️ (Lol) from India!
@JamesQQuick
@JamesQQuick 3 года назад
@@29namankumar29 Wow, thank you so much. That's very cool to hear :)
@29namankumar29
@29namankumar29 3 года назад
@@JamesQQuick Sir can you plz make a course on Html and Css? Plz try Sir..
@virtualvessel0
@virtualvessel0 8 месяцев назад
@JamesQQuick Hi, Thanks. How about using url instead of Postman e.g. localhost/characters/post/767/{"name": "etc"}
Далее
Tips For Using Async/Await in JavaScript
16:26
Просмотров 395 тыс.
How to Measure ANY Cliffs Height with a Rock
00:46
DynamoDB in 20 Minutes - Intro to NoSQL
20:16
Просмотров 7 тыс.
How to use AWS Dynamo DB
28:54
Просмотров 2,8 тыс.
Notes: NestJS and DynamoDB RestAPI
35:54
Просмотров 1,7 тыс.
How to Build a REST API with Node JS and Express
31:34
5 JavaScript Concepts You HAVE TO KNOW
9:38
Просмотров 1,4 млн
Why aren't you using Fastify? Or Koa? Or NestJS?
9:58