Simple Python Server

Andy Bell

Do you want a super quick and easy local server on Mac (and probs linux)?

  1. Open your Terminal
  2. cd to your project directory
  3. Run python -m SimpleHTTPServer
  4. Open your browser to localhost:8000
  5. Done

Update

Florens Verschelde has just blown my damn mind with this: npx serve which will serve up your site on localhost:5000. Amazing.