I got stuck in CrossOrigin trying to run the D3.js sample at hand, so I tried to find out how to start the web server locally.
simpleserver.py
#!/usr/bin/python
import SimpleHTTPServer
SimpleHTTPServer.test()
Place the above file in the directory where the file you want to serve with HTTP exists, and execute the following command.
$ python simpleserver.py
## One liner just in case
I want to avoid one-liner because I want to register it in the repository, but I know it just in case.
```$ python -m simplehttpserver```
Recommended Posts