Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 650 Bytes

File metadata and controls

31 lines (19 loc) · 650 Bytes

Introduction to NodeJS

This small repository was created to show few basic things about NodeJS.

Hello World with only NodeJS

File bare.js is showing how to create simplest Hello World application.

To start it, you need to execute:

node bare.js

After that, you should be able to see Hello World at http://localhost:3001/.

Express Example

File express.js shows simple ExpressJS example. Also, this file shows how we can link files together.

To start it, you need to execute:

node express.js

Express

File index.js shows how to create ExpressJS creating HTML with Pug and how to host static files.