GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - NebelDev/Nodejs: Basic webserver using Express library

BranchesTags
Open more actions menu

Latest commit

 

History

20 Commits
20 Commits

Folders and files

NameName
Last commit message
Last commit date
html
html
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
server.js
server.js
 
 

Repository files navigation

Node.js - The simplest way to create a web server

In this project I use Node.js and Express module to create a simplest web server.
The web server is listening on the port 3000 and will show you the "index.html" as hompage.
You can change the listening port editing the line "app.listen(process.env.PORT || 3000)" and set 80 instead of 3000.
The directory "html" is important to place static web pages that won't be process as script page.

Static HTML files

Inside the folder html you can place your static html/ javascript files. For an advanced webserver we should use templates.

Default homepage

var options = {
  index: "index.html"
};

Change the index var with your static homepage file.

About

Basic webserver using Express library

Topics

nodejswebserver

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.