Skip to content

Instantly share code, notes, and snippets.

@shiqimei
Created September 21, 2019 16:42
Show Gist options
  • Save shiqimei/cfccb0fe70bdfb1408ef3f3008cb2a28 to your computer and use it in GitHub Desktop.
Save shiqimei/cfccb0fe70bdfb1408ef3f3008cb2a28 to your computer and use it in GitHub Desktop.
Start a HTTP server
  1. using python based http server
python -m SimpleHTTPServer # Serving HTTP on 0.0.0.0 port 8000 (by default)
python -m SimpleHTTPServer 3000 # Serving HTTP on 0.0.0.0 port 3000
  1. using node based http server
npm i -g http-server
http-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment