Skip to content

Instantly share code, notes, and snippets.

@paulojeronimo
Created March 14, 2022 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulojeronimo/f5d589e4e047a510e0315186aaf88fdd to your computer and use it in GitHub Desktop.
Save paulojeronimo/f5d589e4e047a510e0315186aaf88fdd to your computer and use it in GitHub Desktop.
Three ways to run a simple HTTP server on port 3000 with three different languages

Using Node.js (and the package serve)

$ serve -s .

Using Python 3

$ python3 -m http.server 3000

Using Ruby

$ ruby -run -e httpd . -p 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment