The Node Core

Server and Clients

  • Client requests and server responds

  • Web server:

    • Server connected to the internet

    • Client: Browser

      • Standard is HTTP

  • Combines PHP, C#, or Ruby

What Does Javascript Need To Manage Server

  • Deal with files

  • Organize code in reusable pieces

  • Ways to deal with database

  • Communicate over internet

  • Accept request/response

  • Async work

Node.js

  • Is embedded an an application within v8's C++ engine

  • Node.js itself include both C++ and js

  • Framework / js library

Hello World

  • Visual studio code

    • Debugging option, that walks directly through the C++ app (node itself)

Debugger listening on port 35224
Hello world
  console.log("Hello world")
node app.js
Hello world

Last updated

Was this helpful?