Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Introduction

...

Info

A quick over of three ways to create a node.js application

Creating an Application Base

Method 1

Simply create your .js files and a launch.json file.

...

When you run this app you will see the message "Cannot GET /".  If you check the developer's tools console output you will see the following error "GET http://localhost:3000/ 404 (Not Found).  You are seeing this message because you have not set up any event handlers (your application has no endpoints)

Info
titleImportant

If you want to use import * as module from "module_file" add 


{"type": "module" }


to you package.json file