Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

COFFEECATCODING


抱着猫咪 喝着咖啡 写写代码

Start a HTTP server in Python and NodeJS

Python:

python -m CGIHTTPServer

NodeJS:

Install the http-server package:

npm install http-server -g

Then run the server with the following command

http-server -p 8000

More details about http-server