Getting Data from the Backend (Node.js/Express) to the Frontend (JavaScript)

Поділитися
Вставка
  • Опубліковано 8 лют 2025
  • Enabling data transfer from the backend to the frontend is vital in developing dynamic and interactive web applications. It allows the frontend to access and display real-time information, enabling features like live updates, user authentication, and data visualization, ultimately enhancing the functionality and user experience.
    Join CBT Nuggets trainer Shaun Wassell as he guides you through the process of installing Node.js and utilizing it to run JavaScript code outside the browser. Explore basic frontend execution within an Express application, and learn how to load data into frontend code by sending a request to an Express backend.
    👉 Watch this entire Building Web Servers with Express.js training course: training.cbt.g...
    Not a CBT Nuggets subscriber? Start your free week: www.cbtnuggets...
    Check out Shaun's other courses: www.cbtnuggets...
    -----------------
    Connect with CBT Nuggets for the latest in IT training:
    • Twitter - / cbtnuggets
    • Facebook - / cbtnuggets
    • Instagram - / cbtnuggets
    • LinkedIn - / cbt-nuggets
    #expressjs #softwareengineer #javascript #webserver #webapp #nodejs #html #json #itprofessional #ittraining #itcertifications #cbtnuggets

КОМЕНТАРІ •

  • @aykhanislamzade
    @aykhanislamzade 6 днів тому +2

    Man seriously this is so clear. It truly and simply explains how this back end front end communication works. Thank you

  • @williamhu9567
    @williamhu9567 5 місяців тому +9

    thank you for this great tutorial for someone who's just starting with back end development!

  • @RoyPatrick-b4t
    @RoyPatrick-b4t Місяць тому +1

    i have been searching for just this answer all day!!, i really like this, it answers my question with no remaining question.

  • @narayananseshagirirao2569
    @narayananseshagirirao2569 Рік тому +5

    Thank you. Excellent tutorial. In a very short time, I learnt what otherwise would take hours.

  • @hafsaseafood6960
    @hafsaseafood6960 10 місяців тому +1

    Thank you.. you actually made my day... I will try to fetch some API responses with the help of the information that you have provided. :)

  • @AliRaza-yi5mw
    @AliRaza-yi5mw 4 місяці тому +1

    Thankyou very much for such an informative videos,it is quite valuable.

  • @PurelandTourandTravels
    @PurelandTourandTravels 10 місяців тому +1

    Very nice tutorial.Thanks a lot😊

  • @daianycorrea306
    @daianycorrea306 3 місяці тому +1

    Very helpful video. Thank you!

  • @theteacherpreneur
    @theteacherpreneur 4 місяці тому +1

    One of the best videos I've found on this topic. Thank you!

  • @tushuoye
    @tushuoye Рік тому +6

    Video start at : 5:15

  • @PureLandTourTourandTravels
    @PureLandTourTourandTravels 8 місяців тому +1

    Nicely explained with the how it works.

  • @yordaberhane109
    @yordaberhane109 Рік тому +1

    Awesome video helps me a lot. Appreciate!

  • @BackupCookie686
    @BackupCookie686 4 місяці тому +1

    Thank you.. IT just help me a lot..

  • @vickenpool7698
    @vickenpool7698 Рік тому +1

    You are brilliant mate! thank you

  • @tamimib
    @tamimib 7 місяців тому

    Merci pour ce cours. C'est très clair !!!

  • @yajie7756
    @yajie7756 5 місяців тому

    thanks for the great tutorial!

  • @hyperborean72
    @hyperborean72 Місяць тому

    for " import express from 'express'; " to work you need to write it correctly namely " import * as express from 'express'; " and then the declaration "const app = express(); "

  • @HuyNguyen-en4pr
    @HuyNguyen-en4pr 7 місяців тому

    you saved my life

  • @aaronargottelopez3488
    @aaronargottelopez3488 3 місяці тому

    Thanks!

  • @pratikpuri7079
    @pratikpuri7079 Рік тому

    Nice Video helped me a lot

  • @HorseyTime
    @HorseyTime Рік тому

    Video starts at 20:01

  • @hyperborean72
    @hyperborean72 Місяць тому

    thank you for the clear example. But do I understand right that without instruction app.listen(port, callback) server won't be running?

  • @shrust1k
    @shrust1k 11 місяців тому

    tnx you so much!

  • @shadrack3370
    @shadrack3370 6 місяців тому

    thanks a lot

  • @alphabetsalphabets5242
    @alphabetsalphabets5242 Місяць тому

    Hello, how would I do this but instead of fetching the data immediately have the data be fetched only when a button is clicked. Your scenario is that no user input is required.
    Load endpoint -> page fetches data immediately.
    How can I do
    Load endpoint -> user presses button -> access endpoint to retrieve DB entries -> page fetches data -> renders in page.
    From what I can tell I need to send the values to a separate endpoint and have the HTML page read data from the separate endpoint.

  • @learn...7065
    @learn...7065 2 місяці тому

    @CBT Nuggets excellent but make another video includes with css,html , javascript,nodejs ,to store values in mongo db and retrieve those data on frontend

  • @RoyPatrick-b4t
    @RoyPatrick-b4t Місяць тому

    great job. but maybe using react instead oj jquery would be great

  • @prathmeshkalehere
    @prathmeshkalehere 10 місяців тому +12

    wait, did he just say node-demon?? tf. It is Node-mon

    • @codenameMoose_907
      @codenameMoose_907 10 місяців тому

      😂 I say that, too. "no 😈" It makes me laugh every time.

    • @davidnefdt3059
      @davidnefdt3059 4 місяці тому

      I actually just came down to the comments to see if anyone else noticed😅

  • @DhananjayN-dw5jg
    @DhananjayN-dw5jg 8 місяців тому

    i want fetch the data from from the excel sheet to existing html page automatically using unique IDs . can you help me with this

  • @novaeevancartagenas4647
    @novaeevancartagenas4647 7 місяців тому

    I can't install nodemon it says npm fund, do I need to pay for it ?

  • @lokesh0520
    @lokesh0520 4 місяці тому

    Can we render .jsx file insead of .html

  • @SendelStudio
    @SendelStudio Рік тому

    Can we connect a front-end like framer with a back-end like xano ? Which front-end builder are you using. Please could you show how to connect those two platforms, it would be awesome.

  • @helloworld9018
    @helloworld9018 11 місяців тому

    Nice wallpaper

  • @gamerprovlogs8784
    @gamerprovlogs8784 10 місяців тому

    Hello everyone! May someone know how to return data from fetch() to variable?

    • @codebloodedgang
      @codebloodedgang 10 місяців тому

      The variable is the name of the object. response is a variable that contains the response.json received and so is the Users that he stored the json response in

    • @gamerprovlogs8784
      @gamerprovlogs8784 9 місяців тому

      @@codebloodedgang thanks

  • @supernovaplus5
    @supernovaplus5 4 місяці тому

    You're also good at digital drawing, I guess you're using writing pad instead of mouse.
    By the way, you're spoon feeding, that I am loving and scared of at the same time.
    But thanks for this beautiful video.

  • @sweet7357
    @sweet7357 11 місяців тому

    😊❤❤

  • @lamarmohsen9582
    @lamarmohsen9582 7 місяців тому

    why do you say node demon? it's nodemon as in node-mon.....

  • @thechoosen4240
    @thechoosen4240 9 місяців тому +3

    Good job bro, JESUS IS COMING BACK VERY SOON; WATCH AND PREPARE

  • @db17db11
    @db17db11 11 місяців тому

    Use:
    npm i express
    Instead of:
    npm install express

  • @ctownthrasher
    @ctownthrasher 11 місяців тому

    Node-mon? nawwww No-demon! lol