# Working on your local web server

#### webserver.html

### About Webserver

Now, before we can use JavaScript and continue with D3, we need to install and run a local web server on our computer. Browsers have very strict access to the local file system. The same-origin policy prevents foreign scripts from running and protects us from malicious programmes. Therefore, we need to run a local web server to be able to continue working in the following.
You now have several possibilities to install a webserver:

- via Python: SimpleHttpServer
  So if you have Python already installed on your machine: Open a Terminal, go to the Project-folder and type:

  python -m SimpleHTTPServer

- via npm/brew: HTTP Server

  npm install --global http-server

  brew install http-server

- via npm: Live Server (with live-reload)

  npm install -g live-server