From the terminal, start serving the current directory using http:
python3 -m http.serverThe default port is 8000.
To view in a browser, navigate to http://localhost:8000.
If you want to use a different port, add the port number to the end of the command.
python3 -m http.server 9000To stop the server, use Ctrl + C in the terminal where the server is running.
Found in many places on the web, including this blog post.