Simple Backend Node.js Chat WebSocket Project (Hindi)

Поділитися
Вставка
  • Опубліковано 8 січ 2024
  • Sahi laga toh like + subscribe kar dena for more content. Comments mei share your feedback!

КОМЕНТАРІ • 22

  • @venkat.sairam
    @venkat.sairam 5 місяців тому +2

    🎯 Key Takeaways for quick navigation:
    00:00 🚀 *The importance of hands-on coding experience is highlighted for effective learning in programming projects.*
    00:28 🛠️ *The upcoming project involves creating a chat app using Node.js and covering concepts like web sockets.*
    00:41 🎯 *The project is backend-focused, making it relevant for those interested in backend development.*
    01:11 📝 *The video will guide through the steps of completing the project, including introductory material and project requirements.*
    02:23 🌐 *The project, while suitable for a resume or interview showcase, is primarily designed for learning and gaining practical experience in building a chat application.*
    03:03 🧠 *The speaker discusses the functionality of a UI in an application, highlighting elements like typing indicators, user names, and rooms in the project.*
    03:18 🤔 *The speaker addresses the question of why use CodeDam's AI solver, making an analogy to keeping a washing machine at home instead of going to a laundromat.*
    03:32 🧰 *The importance of using platforms like CodeDam for a collection of tools, projects, and courses that help aspiring developers.*
    03:59 💡 *Advice for individuals in marketing or sales roles to consider CodeDam Pro subscription or AI usage for coding, emphasizing the benefits for aspiring coders.*
    04:57 🚀 *Starting a project in real-time chat application development using web sockets is introduced with the foundation server setup.*
    05:11 ⚙️ *Challenges involve setting up the server folder, installing Express, and creating the foundation for a real-time chat application.*
    05:24 🔧 *Instructions for installing Express and verifying VS Code setup for the project are provided.*
    05:39 🌐 *Explaining the familiarity of the VS Code setup for ease of use and highlighting the importance of having a consistent environment for coding.*
    05:52 🔄 *Emphasizing the seamless transition between local and project environments for effective learning and practice.*
    06:06 🖥️ *Ensuring a similar environment on both local and project systems for smooth workflow and effective learning in web socket-based chat application development.*
    06:38 📂 *Setting up folders for client and server in the project.*
    06:53 🛠️ *Recommending the use of npm as a fast package manager for the project.*
    07:06 📄 *Creating the server.js file and removing unnecessary files like script.js.*
    07:21 🚀 *Setting up a basic Express server using Express.js.*
    07:35 🖥️ *Explaining the purpose of the code for serving client-side files.*
    07:50 🌐 *Choosing port 1337 for server communication and explaining the reasons behind it.*
    08:04 🔗 *Demonstrating how to start the server and view it in the browser.*
    08:19 🌐 *Generating a temporary URL for testing the application.*
    08:31 🛑 *Clarifying the temporary nature of the URL and its usage during development.*
    08:46 🚧 *Providing instructions on adding basic HTML5 to the client folder for testing.*
    08:59 📂 *Discussing options to add files, either through the terminal or file explorer.*
    09:14 🧩 *Configuring server.js to use express.js, setting up the server, and explaining default behaviors for files like index.html.*
    10:00 📄 *The speaker discusses the content of the "file.txt" and navigating to it using a URL, demonstrating how Express.static works.*
    10:42 🔒 *Challenges include ensuring the server is on port 1337 and having a welcome message inside the "h1" tag. The speaker shows an issue with missing content and addresses it.*
    11:11 🚀 *Progressing through the project, the speaker emphasizes checking the logic and functionality of the app using testing.*
    11:38 ⚙️ *Running tests for real-time chat functionality, addressing a timeout issue, and ensuring the server is working properly.*
    11:52 🛑 *Noting the significance of having the server started on port 1337 and addressing a timeout issue by checking logs.*
    12:06 ✅ *Successful completion of tests, and fixing a failure by adding the "h1" tag, showcasing the importance of attention to detail in coding.*
    12:20 🛠️ *Moving on to the next step, integrating web sockets into the Node.js server for real-time communication between server and clients.*
    12:35 ⚙️ *Initiating the installation of a package to help create web socket servers, rectifying an installation mistake, and emphasizing folder organization in Node.js projects.*
    12:49 🔄 *Removing unnecessary packages, reinstalling, and proceeding with the installation of the required package for creating web socket servers.*
    13:02 🛠️ *The speaker discusses the installation process and mentions that the project is relatively easy.*
    13:15 📈 *As the project progresses, steps and logic will be added, making it more advanced.*
    13:29 🔄 *Copying the socket server code and pasting it into the project for implementation.*
    13:43 🌐 *The speaker shows the WebSocket client code and explains the server setup.*
    13:57 🔄 *Restarting the server, demonstrating that the WebSocket server is running on port 1337.*
    14:09 🧠 *Explaining the benefits of running both an HTTP server and a WebSocket server on the same port.*
    14:25 🔗 *The speaker highlights the advantages of sharing a single port for HTTP and WebSocket servers.*
    14:39 💬 *Demonstrating the server's response to incoming client connections and messages in the console.*
    14:53 🛑 *Stopping the broadcast for better maintenance, emphasizing good practices for handling clients.*
    15:06 📚 *The speaker encourages viewers to understand the instructions, providing insights for those new to WebSocket concepts.*
    15:19 ✔️ *Running tests to ensure both the HTTP and WebSocket servers are functioning correctly.*
    15:34 🟢 *Verifying successful tests with green indicators for both servers in the output.*
    15:48 📌 *Acknowledging that both tests pass, indicating successful setup and communication between servers.*
    16:01 📂 *Create a new file named `script.js` in the client folder for JavaScript code.*
    16:27 🌐 *Specify the protocol dynamically based on whether the server is running on localhost or a live environment.*
    17:19 🛠️ *Implementing proxy for internet access using `http-proxy` when running online tests.*
    18:29 🧪 *Testing the application locally and considering dynamic protocol or URL constructs for different environments.*
    18:57 🔍 *Explaining reasons to use dynamic domain and handling dynamic environments in web socket applications.*
    16:27 🌐 *Define the protocol dynamically based on whether the server is running on localhost or an online environment.*
    18:15 🌐 *Explore the importance of specifying protocols and URLs dynamically, considering local and production environments.*
    18:57 🛡️ *Understand the reasons behind choosing specific domain names and dynamic protocol switching for a web socket server.*
    19:12 🌐 *Discuss the dynamic nature of domains and the considerations when switching between local and production environments.*
    20:05 🚀 *Start building a basic chat application with features like entering messages and sending them with a "Send" button.*
    [20:18 URL](ua-cam.com/video/Qb-SUu25tWk/v-deo.html) *🌐 Connecting the web socket on the client side is automated when the user visits the page, ensuring automatic connection.*
    [20:31 URL](ua-cam.com/video/Qb-SUu25tWk/v-deo.html) *📤 Setting up the functionality to clear input and send messages to the backend via the web socket.*
    [20:45 URL](ua-cam.com/video/Qb-SUu25tWk/v-deo.html) *🖱️ Creating a click listener for the button to send messages through the web socket.*
    [20:59 URL](ua-cam.com/video/Qb-SUu25tWk/v-deo.html) *🔍 Verifying the message transmission by inspecting the element and ensuring the message is sent to the server.*
    [21:13 URL](ua-cam.com/video/Qb-SUu25tWk/v-deo.html) *🧪 Testing the implemented features and resolving a potential issue related to the send button.*
    [21:42 URL](ua-cam.com/video/Qb-SUu25tWk/v-deo.html) *📤 Ensuring proper identification and handling of messages received from the client on the server side.*
    [22:05 URL](ua-cam.com/video/Qb-SUu25tWk/v-deo.html) *🚀 Completing the final steps, including broadcasting messages to all connected clients.*
    [22:44 URL](ua-cam.com/video/Qb-SUu25tWk/v-deo.html) *🌐 Implementing client tracking for broadcasting messages and addressing potential issues related to session tracking.*
    [23:25 URL](ua-cam.com/video/Qb-SUu25tWk/v-deo.html) *⚙️ Opening the script.js file to handle incoming messages on the client side through the web socket.*
    23:39 🧰 *Creating a chat box in Node.js for a simple backend WebSocket project.*
    24:05 🌐 *Testing the chat functionality by sending and receiving messages between server and client.*
    24:34 🚀 *Broadcasting messages to all connected clients, demonstrating multi-client functionality.*
    25:02 🧪 *Verifying the project by checking test messages and ensuring the code is functioning correctly.*
    25:47 🛠️ *Downloading and continuing the project for further improvements or customization.*
    26:15 🎓 *Encouragement to practice coding by taking inspiration from tutorials, learning concepts, and working on projects.*
    Made with HARPA AI

  • @maheh360
    @maheh360 5 місяців тому +1

    Thank you so much sir hindi mein project banane ke liye plz aise aur videos banaiye👑❤

  • @Rajkumar-mi3uf
    @Rajkumar-mi3uf 5 місяців тому

    You are the best mentor🎉

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

    that's kind of content I want, thanks

  • @mma-dost
    @mma-dost 4 місяці тому

    Bhaiya will the project review video coming for our projects. And yes please bring more project videos especially with new tech t3 stack, prisma, zod or validot new tech. Thanks a lot bhaiya 2024 job 🔥🔥🔥🔥🎯🎯

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

    Thank you so much Sir bohot pasand aya ye video
    ek front end ka bhi project banaiye Sir with doubt solving plz 🙏❤😍

  • @user-uh4bf5ki1u
    @user-uh4bf5ki1u 5 місяців тому

    Please do more prolonged live coding streams, typically a four to five hour streak

  • @AfnanSk
    @AfnanSk 5 місяців тому +1

    👌🏻

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

    This is so good brother

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

    Mehul Bro Its been long since you have done walkthrough video like this one
    Please create any one such video aleast once in month sir
    please dont
    its done i have gone through lot of these your videos where you give useful content please
    once i get job iwould definelty join codedamn having said 4.0 gpt is integrated i dont have so much money now
    but such videos where you do 30 mins videos will and is helping me do some project although is small
    "kuch to kar raha hun" Please Sir
    like you sir

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

    You are great

  • @Sandeep-zd6dq
    @Sandeep-zd6dq 5 місяців тому

    🔥🔥more project videos

  • @shubop3199
    @shubop3199 5 місяців тому +1

    One request sir please and its big problem for all students by watching videos we can do these things but...
    how to start or do projects on our own...
    Can you make video on this topic

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

    Content getting richer

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

    kya aap hindi main node js ka tutorial beginner to professional laaoge?????

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

    mehul can you upload all the projects which was there on codedamn platform

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

    sir is there any option to join class to u apartfrom u tube

  • @Monotonic_Stack
    @Monotonic_Stack 5 місяців тому +1

    english english kr raha tha aya ab hindi mai

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

    ye to sar k upr se gya😢

    • @Rajkumar-mi3uf
      @Rajkumar-mi3uf 5 місяців тому

      Eska matlab aapne kabhi project nhi bnaya hai