17 - Set up the Environment - Advanced Node and Express - freeCodeCamp
Ganesh H
If you're failing this challenge, go to 16mins 2s To get started with our chat app, we need to set up socket, our database connection, and GitHub Authentication. After this, we can start creating a websocket between the client and server script for realtime communication.
Link to Challenge : https://www.freecodecamp.org/learn/quality-assurance/advanced-node-and-express/set-up-the-environment Written Guide: https://www.notion.so/ganeshh123/Set-up-the-Environment-acf010081f6649ebb8eccfad69669058 Full Playlist for this course : https://www.youtube.com/playlist?list=PLhGp6N0DI_1RL9djhgSH65pZhJ6xSyKX8 All Writen Guides for this course : https://www.notion.so/ganeshh123/ccf6039186334f83a54c1c9216f30e3c All My Tutorials can be found at : https://www.notion.so/Tutorials-Ganesh-H-293ea420d34a464f9a1907e0405b5f26
00:00 - Introduction 00:20 - Example App 00:51 - Setting up Socket Server http.createServer() Returns a new instance of http.Server. https://nodejs.org/api/http.html#http_http_createserver_options_requestlistener
Server() - exposed by require('socket.io') Creates an Instance of a Socket Server. https://socket.io/docs/server-api/#new-Server-httpServer-options
server.listen() Starts the HTTP server listening for connections. https://nodejs.org/api/http.html#http_server_listen
03:05 - Setting up Socket Client 04:48 - Listening for a 'connection' event 06:10 - Project Setup 06:32 - Database Connection 09:13 - GitHub Login Setup 12:04 - What's in this project? 13:40 - Challenge Solution 16:02 - IMPORTANT - How to allow testing
-————————————————————————————————————- Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside a web browser. Node.js lets developers use JavaScript to write command line tools and for server-side scripting—running scripts server-side to produce dynamic web page content before the page is sent to the user's web browser.
Express.js, or simply Express, is a web application framework for Node.js. It is designed for building web applications and APIs. It has been called the de facto standard server framework for Node.js. Express runs between the server created by Node.js and the frontend pages of a web application. Express also handles an application's routing.
freeCodeCamp (also referred to as “Free Code Camp”) is a non-profit organization that consists of an interactive learning web platform, an online community forum, chat rooms, online publications and local organizations that intend to make learning web development accessible to anyone. Beginning with tutorials that introduce students to HTML, CSS and JavaScript, students progress to project assignments that they complete either alone or in p ... https://www.youtube.com/watch?v=XBiuB8ekvdE
72646640 Bytes