Skip to content

adalbertoteixeira/basic-web-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic web server

Forked from the React tutorial.

Node

npm install
node server.js

Ruby

ruby server.rb

Go

go run server.go

And visit http://localhost:3000/. Try opening multiple tabs!

Changing the port

You can change the port number by setting the $PORT environment variable before invoking any of the scripts above, e.g.,

PORT=3001 node server.js

About

Basic web server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.8%
  • Go 15.2%
  • Ruby 14.2%
  • HTML 9.8%