I've been wondering how to connect browser with a smart contract using web3. I know that I need to instantiate provider as follow,
web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
And via provider I'm 'talking' with contract, right?
When comes to deployment phase, do you setup node as a provider or you run some RPC on the server on localhost?