Lets Build a Node Rest API | Node Rest Api Using Express and SQLite

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024
  • Get 1 on 1 mentorship with me! ▶▶▶calendly.com/c...
    In this video I demonstrate how to build a node js rest api using express and sqlite. I also cover some fundamental concepts about node in general. I talk about the purpose of the package.json, what the require function call does and I explain what npm is.
    Express middleware: • How Does Express Middl...
    Sqlite browser: sqlitebrowser....
    Download Node: nodejs.org/en/

Комментарии • 88

  • @shlomoh.6148
    @shlomoh.6148 2 года назад +6

    in 25 minutes you explained perfectly topics that could take hours and hours to be explained by a typical instructor.
    ת ו ת ח!

    • @ארזרפאלי-ט9ס
      @ארזרפאלי-ט9ס 2 года назад

      היי מה הולך, לא עובד לי החבילה של knex מnpm, אומר לי להוריד כל פעם משהו חדש וזורק לי שגיאה כל הזמן. יש לך מושג מה יכול לעזור לי לפתור את התקלה?

  • @mordicai4296
    @mordicai4296 2 года назад +4

    I appreciate the speed, you're conscientious of your viewers time, while also cramming in tons of info.
    You got a sub from me sir!

  • @vintagewander
    @vintagewander 3 года назад +6

    My dude be rapping a nodejs tutorial

  • @justlutfi2890
    @justlutfi2890 3 года назад +6

    difference between master & knowing everything is the way he talks with speed of light

    • @gpiludu
      @gpiludu 3 года назад

      I swear he accidently set the speed to 1.25x when he was editing the video.

    • @CodingWithChaim
      @CodingWithChaim  3 года назад +1

      And you’d be wrong… in some videos I’ve even slowed the video down in edit lol

    • @gpiludu
      @gpiludu 3 года назад

      @@CodingWithChaim Color me impressed, then! Do you script your videos or can you just have that much clarity of thought naturally?

    • @CodingWithChaim
      @CodingWithChaim  3 года назад

      I give myself bullet points, but yea I do have to retake each section more than once. I get caught out and confused plenty. Talking to the camera just does not feel natural yet. It takes lots of practice to really feel comfortable taking to a camera.

  • @felipejimenezortega7171
    @felipejimenezortega7171 3 месяца назад

    Gracias por el video. Me encantó que explicaste el por qué de cada dependencia que elegiste utilizar, así como también explicaste a detalle cada una de las decisiones que tomaste, además fue un video de 25 minutos que es perfecto, no muy largo ni muy corto :) Saludos desde Chile
    Thanks for the video. I loved how you explained why you install those dependencies and how they work, also you explained every detail about the decisions you made and that is very insightfull. It is also important that you made a video of 25 minutes, which is perfect time, not so long and not too short :) Greetings from Chile

  • @samuelfischer3764
    @samuelfischer3764 3 года назад +2

    i just watched this video for the SQLite part but still a great video

  • @arnoeagleeyes
    @arnoeagleeyes 2 года назад

    Wow finally someone where i dont have to set the speed to 1.5 ;-)) thanks for this. I learned a lot.

  • @SuperVladikk
    @SuperVladikk 3 года назад

    לא מבין איך אין לך יותר עוקבים... פשוט תותח הלוואי ותגדל במהירות!

    • @CodingWithChaim
      @CodingWithChaim  3 года назад

      !תודה לך! אני מעריך את המילים המעודדות שלך

  • @erhan.emrah.fırat
    @erhan.emrah.fırat Год назад

    by which progam did you open SQ DB? I watched again and again did not find any explanation about the DB application?

  • @ahmadhassan5680
    @ahmadhassan5680 3 года назад +3

    how can I like this a thousand times..?

  • @blisterfingers8169
    @blisterfingers8169 Год назад

    18:56 What exactly is the "car" object in createCar(car) and updateCar(id, car)??
    What's being returned by getAllCars?
    Why am I the only person asking this? It seems like a glaring omission.

  • @delsol7878
    @delsol7878 Год назад

    I am getting the following error when I sent data through postman.
    [Error: insert into `cars` (`make`, `model`, `year`) values ('honda', 'delsol', 1995) - SQLITE_ERROR: no such table: cars] {
    errno: 1,
    code: 'SQLITE_ERROR'
    }
    I do have cars.js file in db folder.

  • @hanibal43
    @hanibal43 3 года назад +3

    AMAZING I needed something like this

    • @CodingWithChaim
      @CodingWithChaim  3 года назад

      Awesome! Glad you found the video useful

    • @hanibal43
      @hanibal43 3 года назад +1

      @@CodingWithChaim would love to see more react coding interview project videos

  • @Nif-kun
    @Nif-kun 3 года назад +7

    This was fast and yet surprisingly understandable. This saved up my time while learning a lot from it. Thanks for sharing the knowledge!

    • @lodimateus
      @lodimateus 8 месяцев назад

      hhhahahahahaha feel the same here

  • @bctvizag
    @bctvizag 3 месяца назад

    thank you learned a lot
    can you provide and alternative to knex

  • @bariswheel
    @bariswheel 3 года назад

    Very educational, thank you Chaim!

  • @ToboTheRibbler
    @ToboTheRibbler 3 года назад +2

    Would the real slim Chaimi please stand up.

  • @ToddDunning
    @ToddDunning 3 года назад

    Chaim thank you so much for doing these

  • @doe.prodzz
    @doe.prodzz 2 года назад

    Great tutorial!!!
    the 'patch' requests always return id:1, can you explain in details? many thanks !

  • @bariswheel
    @bariswheel 3 года назад

    Chaim do you have a video showing sqlite authentication against a database with a table with name, email, hashed password ?

  • @tanveerbrar6512
    @tanveerbrar6512 2 года назад

    awesome tutorial with great explanation!

  • @Amateur2CombaT
    @Amateur2CombaT 2 года назад

    Thank you very much, that was crystal clear

  • @7.jael_
    @7.jael_ 3 года назад

    this video made me autosubscribe

  • @aminabdollah7314
    @aminabdollah7314 2 года назад

    Thank you very much, Very useful

  • @kelolettek3927
    @kelolettek3927 3 года назад +1

    thank you ! helpful !! :)))

  • @sk-nath
    @sk-nath 2 года назад

    I am very happy to complete this projects... Many many thanks. I faced a issues - please help me.. When I hit delete command from postman... then return this error msg: 5
    (node:54118) UnhandledPromiseRejectionWarning: Error: Undefined binding(s) detected when compiling DEL. Undefined column(s): [id] query: delete from `cars` where `id` = ?

    • @CodingWithChaim
      @CodingWithChaim  2 года назад

      Hard to know what the issue is without seeing your code

  • @noobbaster
    @noobbaster 3 года назад

    Actually 1337 guide. Thanks)

  • @oyoyoyoyoyoy9479
    @oyoyoyoyoyoy9479 3 года назад

    nice reminder

  • @orangslovakindo
    @orangslovakindo 3 года назад +2

    Scatman John

  • @mohamedkouriat2972
    @mohamedkouriat2972 Год назад

    merci cousin

  • @jarieltonguirra9267
    @jarieltonguirra9267 3 года назад

    Eu consigo fazer um build PKG nesse projeto?

  • @wetbadger2174
    @wetbadger2174 2 года назад +1

    "Listening on port 1337" I see what you did there.

  • @igorr4682
    @igorr4682 3 года назад +2

    U need to cut back on your coffee! May 1 cup will do for you

  • @rafaelangelopiad8919
    @rafaelangelopiad8919 3 года назад

    thank you

  • @ado4969
    @ado4969 2 года назад

    2 Chronicles 1:11

  • @s7887177
    @s7887177 2 года назад

    I am pretty glad to be taught by Jason Statham

  • @RolandJorz
    @RolandJorz 2 года назад

    Maaaaan!!!!! ... you are a fast talker, can you slow down a little bit? What's The Hurry???

  • @thelazycoder64
    @thelazycoder64 8 месяцев назад +1

    You explain too much, anyone watching a video on how to build a rest API with node and SQL should already know the basics. 12 minutes into the tutorial and it hasn't started 🤦

  • @traindeluxe3789
    @traindeluxe3789 3 года назад +1

    You are speaking too slow. I actually used the x2 youtube function to speed your video up a bit because I was falling asleep.

  • @docdrivesrcp9926
    @docdrivesrcp9926 3 года назад +3

    Talking so fast makes this video a good proof that you know the subject by heart, but also makes this video less enjoyable as a learning experience. Thanks for sharing your use case and solution implementation though.

  • @kennethrodriguez3283
    @kennethrodriguez3283 3 года назад +1

    dude you talked so fast! lol

  • @31s9
    @31s9 2 года назад

    boring

  • @zlackbiro
    @zlackbiro 3 года назад +1

    Why you all the time overhelming simple stuff? Users should use sqlite in node directly using sqlite3 like sqlite3.Database() and select the memory, then build simple query like a pro using "SELECT * FROM tableName WHERE user = something"

    • @muhammadjawadurrahim4883
      @muhammadjawadurrahim4883 3 года назад +1

      I dont see him overwhelming anything. If you want to use sqlite3.Database, you can just learn it from about anywhere. He is teaching us how to use things that are not covered elsewhere. Also knex seems like a great tool, you can support multiple DB across the board with a single interface. Isnt that great?

    • @christianjamesguevarra6257
      @christianjamesguevarra6257 3 года назад

      knex is just a query builder

  • @censored5033
    @censored5033 3 года назад +2

    Anyone know why Im doing this and all the values in the db are null

    • @andrewrobinson28
      @andrewrobinson28 2 года назад

      Its because you have text selected in your postman POST request and not JSON..

  • @the_full_stack_junkie
    @the_full_stack_junkie 3 года назад +1

    Great video just one question what is the reason for still installing body parser? Isn't it part of express.urlencoded (built into express now)?

    • @CodingWithChaim
      @CodingWithChaim  3 года назад +1

      If it is I actually wasn’t aware of that. Thanks pointing that out will check it out

    • @djneils100
      @djneils100 3 года назад +1

      @@CodingWithChaim it's true - I got it to work today

  • @techtaley
    @techtaley 8 месяцев назад

    Thank you Chaim. I love SQLite but since it’s a document where would you host the rest api?

  • @dhairyafaria1
    @dhairyafaria1 3 года назад +1

    Awesome Stuff in record time

  • @mg-programming
    @mg-programming 9 месяцев назад

    It sucks that there isn't promises version to sqlite3.

  • @jaloliddinqovlonov3175
    @jaloliddinqovlonov3175 6 месяцев назад

    2x speed 🚀🚀

  • @serhiirumiantsev7736
    @serhiirumiantsev7736 2 года назад

    awesome tutorial

  • @stpharis
    @stpharis 2 года назад

    Thanks for the video. Is there a way to handle sqlite errors (i.e. wrong import query)? Currently if I get an error from sqlite (i.e. knex connection) the server ends the connection. Thank you

  • @tri738
    @tri738 2 года назад

    Wow, what a great tutorial. Theoretically, we should be able to implement all the CRUD functions using SQL commands alone. I'm trying to do this using only the sqlite3 package (without knex). Can you give an example? Again, excellent content.

  • @iam_spaceCabbage
    @iam_spaceCabbage 2 года назад

    Wow just found this channel and I’ve never heard things explained so well
    Instant sub

  • @robbiedozier2840
    @robbiedozier2840 2 года назад

    Finally a video I don't have to watch on 1.5x speed

  • @starwaveprime7398
    @starwaveprime7398 2 года назад

    Just wow! Thank you! Liked and subscribed!

  • @projectObject247
    @projectObject247 Год назад

    Thanks very much. Excellent tutorial!

  • @ahishka7243
    @ahishka7243 3 года назад

    Yout explanations are clear and on point, plus new sub

  • @ahmadhassan5680
    @ahmadhassan5680 3 года назад

    thank you chaim...

  • @FredOooUnavailable
    @FredOooUnavailable 3 года назад

    ridiculous speed…

  • @VK-pk8uz
    @VK-pk8uz 3 года назад

    Actually.

  • @aldorsan
    @aldorsan 3 года назад

    really clear and useful, excelent tutorial

  • @lexiaontube
    @lexiaontube 2 года назад

    יישר כח !!

  • @rangabharath4253
    @rangabharath4253 3 года назад

    Awesome

  • @VectorNodes
    @VectorNodes 3 года назад

    The "good shabbos" ideas credential is adorable ftr. Thanks for the tutorial

  • @WilliamKingbillaking
    @WilliamKingbillaking 2 года назад +1

    I wanted to find a video to play in the background - looking for gaps in my knowledge about node, express, etc. But while I'm cleaning my office and development environment - letting this play - this guy is going a million miles per hour.
    There wasn't enough gaps or breaks between words to make any sense of what goal he was trying to achieve.
    I had to turn it off, It's like listening to Charlie Browns teacher - wawawawaowawo -