# Setup
#### The Common Misconceptions
Neither the browser add-on nor the VS Code extension will host a server for: `PHP`, `.NET` or `NodeJS`. It will give you the *reloading function*, so you do not need to refresh the page every time you save.
In other words. If you just want the reload function when you work with `.html` files, then you do not need this extension at all.
***Need Help? [Watch Video Tutorial](https://www.youtube.com/watch?v=54wcX1G2GH8)***
# Direct Setup`Easy` | Proxy Setup`Advanced`
### Direct Setup
1. Install [VS Code](https://code.visualstudio.com/download) from Microsoft. (code editor)
2. Install VS Code [Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer). (extension to code editor)
3. Install the browser add-on; [Chrome](https://chrome.google.com/webstore/detail/live-server-web-extension/fiegdmejfepffgpnejdinekhfieaogmj/) or [Firefox](https://addons.mozilla.org/en-US/firefox/addon/live-server-web-extension/).
4. Install and run a server on your machine: [Servers and Frameworks](#servers-and-frameworks)
5. Enter the neccesary fields (screenshot below)
1. **Actual Server Address:** is the address where your server is located and the port.
2. **Live Server Address:** is the address where your VS code extension is running.
6. Push the `Go Live`-button in your editor's statusbar.
7. Visit the `Actual Server Address`
![two-step-image](./../img/screenshots/direct-setup.png)
### Proxy Setup
1. Install [VS Code](https://code.visualstudio.com/download) from Microsoft. (code editor)
2. Install VS Code [Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer). (extension to code editor)
3. Install the browser add-on; [Chrome](https://chrome.google.com/webstore/detail/live-server-web-extension/fiegdmejfepffgpnejdinekhfieaogmj/) or [Firefox](https://addons.mozilla.org/en-US/firefox/addon/live-server-web-extension/).
4. Install and run a server on your machine: [Servers and Frameworks](#servers-and-frameworks)
5. Enter the neccesary values (code block below)
1. **Proxy Path:** is the path to the folder you want proxy from. The path is relative to the workspace.
2. **Actual Server Address:** is the address where your server is located and the port.
6. Push the `Go Live`-button in your editor's statusbar.
*`.vscode/settings.json`*
```js
{
// Mainly for static files
"liveServer.settings.useWebExt": true,
// This means that you change your real URL (current PHP url)
// to another URL (which Live Sever starts).
"liveServer.settings.proxy": {
"enable": true,
"baseUri": "/", // i. Proxy Path.
"proxyUri": "http://localhost:80/workspace" // ii. Actual Server Address.
},
}
```
>**Note:** You need to stay on the new host that will be provided by Live Server.
# Servers and Frameworks
### PHP
+ [PHP](http://php.net/downloads.php) `just the preprocessor`
+ [XAMPP](https://www.apachefriends.org/index.html) `cross-platform`
+ [MAMP](https://www.mamp.info/en/downloads/) `mac`
+ [WAMP](http://www.wampserver.com/en/) `windows`
### NodeJS
+ [ExpressJS](https://expressjs.com/en/starter/installing.html) `cross-platform`
### .Net
+ [DotNet Core](https://www.microsoft.com/net/learn/get-started/windows) `cross-platform`
+ [IIS](https://www.iis.net/) `windows`