How To Run Application With Localhost On Windows - 3pillarlabs/socialauth GitHub Wiki

###How to run application with localhost on windows
The consumer keys and secrets obtained from providers require a public domain URL of your application. Most of the providers will not allow you to give URLs like http://localhost/myapp. So how do you test your application on a local development machine?

To do this:

  1. Get your consumer keys and secrets by registering with providers. Use your public domain URL while registering for example, http://example.com/myapp. For more info read prerequisites on getting started
  2. Open hosts file from "C:\WINDOWS\system32\drivers\etc" path.
  3. Make entry in hosts file as below:-
   127.0.0.1        example.com ## Change this to your domain name
   ## Please comment any other line for 127.0.0.1
   # 127.0.0.1      localhost 
  1. Change your Tomcat server name property from localhost to "example.com".
  2. Run your server on port 80.
  3. Deploy your application and start your server. Now you can access your application by using "http://example.com/myapp".

If you want to use our keys that were generated for "opensource.brickred.com", you can simply use the sample properies bundled with our demo and use "opensource.brickred.com" instead of your domain in the steps above.

⚠️ **GitHub.com Fallback** ⚠️