Watch Creating a basic Node Server using Javascript Modules & Node Global Variables Video Tutorial


Tutorial Details & Info

Tutorial Title: Creating a basic Node Server using Javascript Modules & Node Global Variables
Instructor / Channel: Julio Spinelli
Lesson Runtime: 07:16 Minutes
Publish Date: December 10, 2021
Total Students / Views: 19 views

Follow step-by-step with Creating a basic Node Server using Javascript Modules & Node Global Variables created by Julio Spinelli. This full video course has a total duration of 07:16 minutes with detailed practical demonstrations. Watch this video tutorial for free on any desktop PC, Mac, tablet, or smartphone.

Want to learn more about Creating a basic Node Server using Javascript Modules & Node Global Variables? Enjoy instant video playback and interactive course recommendations for a seamless online learning experience. Explore more video lessons by Julio Spinelli or browse popular topics on TutorTube.

Course Description & Lesson Notes

Official Video Description:

You tube uploaded this video only as standard resolution, no idea why. To upgrade it I need to delete and re-upload it. If you so desire, please let me know in the comments section and I will do so. It will have the same title and content, but a new link since that is the only way youtube allows you to re-upload a video. I walk the viewer step by step through the creation of a basic node server using a modular javascript approach and global variables defined in package.json. Here I provide detailed instructions for every step in the video along with other videos to watch if any of the concepts are foreign to the watcher: 1. Let's start by creating a basic server application that listens to a given port=PORT. We will define PORT in package.json: "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "Node_ENV=production Node_PORT=8000 node app.mjs", "dev": "Node_ENV=development Node_PORT=5002 nodemon app.mjs" }, 2. Now, lets use the express Internet framework to build a basic server: import express, {json, urlencoded} from 'express' const app=express() app.use(json({ limit: '50mb'})) // This is to parse the body of the request into an object 'req.body' in 'POST' requests app.use(urlencoded({ extended: false })) // This is to parse the url for variables and data in 'GET' requests using the querystring library when false and the qs library when true /*EXAMPLE: reading isbn number from the url when a get request arrives to the API*/ // app.get('/book/:isbn', (req, res) =⋗ { // const isbn = req.params.isbn // } /*EXAMPLE: reading isbn number from the body when a POST request arrives to the handler route*/ // app.post('/book/', (req, res) =⋗ { // const isbn = req.body.isbn // } app.listen(process.env.Node_PORT, ()=⋗{ console.log('listening to Port: ', process.env.Node_PORT) }) console.log('Node_ENV= ', process.env.Node_ENV, 'Node_PORT= ', process.env.Node_PORT) 2. Well, we have a basic server listening to the port we define in package.json. To illustrate how to do it I have also included the body parser and a url parser built in the express package, they are used in POST and GET requests routes respectively. The body parser parses the body of the POST request into an object 'req.body' and the url parser 1. Update the Mac OS: video tutorial at: https://youtu.be/evOPILp5RPQ 2. Open Mac Terminal: video tutorial at: https://youtu.be/9lK5p6whROY 3. Install developer tools: video tutorial at: https://youtu.be/fdWKyeMDbnE 4. Install Visual Studio Code: video tutorial: https://youtu.be/mGwvdqNyDWs), 5. To have the same VSC extensions that I use, watch: https://youtu.be/_Gr96wLBlnk 6. To install nvm, node and npm watch: https://youtu.be/tKk0JXHYmGo

🌐 Web & Search Guide Notes (DuckDuckGo, Yahoo & Bing):

Master how to understand Creating A Basic Node Server Using Javascript Modules & Node Global Variables with this comprehensive video tutorial guide. In this video, you will gain step-by-step knowledge for Creating A Basic Node Server Using Javascript Modules & Node Global Variables.

Mastering Creating A Basic Node Server Using Javascript Modules & Node Global Variables requires clear step-by-step guidance and practical hands-on visual demonstrations. Explore curated video courses, expert walkthroughs, and detailed lesson notes today on TutorTube.

Watch Creating A Basic Node Server Using Javascript Modules & Node Global Variables full video tutorial and step-by-step course guide with high quality video and audio details on TutorTube.

Follow along to level up your knowledge efficiently on TutorTube.

🎓 Lesson Overview & Learning Outcomes:

Welcome to the step-by-step video guide for Creating a basic Node Server using Javascript Modules & Node Global Variables taught by Julio Spinelli. This tutorial provides a comprehensive walkthrough designed to take you from foundational principles to practical implementation.

💡 Key Topics Covered in This Course:

  • Core Fundamentals & Setup: Understanding the workspace, essential tools, and initial setup for Creating a basic Node Server using Javascript Modules & Node Global Variables.
  • Step-by-Step Practical Demonstration: Hands-on implementation guided by Julio Spinelli with real-world examples.
  • Best Practices & Key Shortcuts: Time-saving workflows, keyboard shortcuts, and industry-standard recommendations.
  • Troubleshooting & Common Pitfalls: How to avoid common beginner errors and optimize your workflow for peak efficiency.

📋 Recommended Prerequisites & Study Notes:

No prior advanced experience is required. Follow along with the video player above on any desktop computer, tablet, or mobile device. Pause and rewind at key steps to practice along with the instructor.

Explore more related video tutorials, course modules, and topic guides on TutorTube.