Start a server on macOS

Start a simple Node.js server in macOS without any installation:

terminal
npx http-server

Or you can do it using Python:

terminal
python -m SimpleHTTPServer 8000

Hi, I'm Erik, an engineer from Barcelona. If you like the post or have any comments, say hi.