Posts Tagged ‘nodejs’

Simple Web server in 15 lines of code

No Comments »

I was trying to build a webserver for just displaying a simple message but I don’t want to use Apache/IIS/nginx etc.
So I tried nodejs and literally it is so easy to write a webserver in just 15 lines of code.

Webserver:

  • which can show static index.html page
  • which can log remote client IPs
  • which can use port from commandline to listen.
  • Portable, can run same code on Windows/Linux

Read the rest of this entry »