Python makes it very easy to create a http server. All you need to do is hit one simple command. When you hit the following command in your terminal/shell it will start a server on port number: 8000. Although you can provide a different port number of your choice. Let's stick to this port number for the purpose of this tutorial.
In python 3:
python -m http.server 8000
In python 2:
python -m SimpleHTTPServer 8000
Follow the steps to run server in your laptop/computer:
python --version
.python -m
http.server 8000
. Once you hit this command the server will startOpen the browser window and enter the following url:
http://localhost:8000/.