# Steps to run react SSO sample Application on windows

**URL:** <https://community.auth0.com/t/steps-to-run-react-sso-sample-application-on-windows/19708>\
**Category:** Get Help\
**Tags:** react\
**Created:** [January 7, 2019, 2:42pm UTC](https://community.auth0.com/t/steps-to-run-react-sso-sample-application-on-windows/19708 "2019-01-07T14:42:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![surender.sandhu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/surender.sandhu/32/10312_2.png) [@surender.sandhu](https://community.auth0.com/u/surender.sandhu)\
**Post date:** [January 7, 2019, 2:42pm UTC](https://community.auth0.com/t/steps-to-run-react-sso-sample-application-on-windows/19708/1 "2019-01-07T14:42:13Z")

</div>

Hi  
I am working on a sample application from below(git url) sample project, on windows environment.  
Can someone please point me out to a help link (with all the steps)to make this project running end to end on a windows machine?

> **[GitHub - auth0-blog/react-b2c-sso: Repository that accompanies a B2C use case.](https://github.com/auth0-blog/react-b2c-sso)**
>
> Repository that accompanies a B2C use case.

Thanks,  
Surender

---

<div class="post-metadata">

**Author:** ![bruno.krebs](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bruno.krebs/32/4382_2.png) [@bruno.krebs](https://community.auth0.com/u/bruno.krebs)\
**Post date:** [January 7, 2019, 4:48pm UTC](https://community.auth0.com/t/steps-to-run-react-sso-sample-application-on-windows/19708/2 "2019-01-07T16:48:29Z")

</div>

Hi. I’m the author of the GitHub project you mentioned. I’ll try to help you get started. Can you please let me know what are the issues are you facing? I’m not a Windows user myself but I’m pretty sure we can figure it out quite fast how to run it on Windows.

By the way, for reference, this is the article that accompanies this repo: [Implementing Single Sign-On in B2C Applications](https://auth0.com/blog/implementing-single-sign-on-in-b2c-applications/)

---

<div class="post-metadata">

**Author:** ![surender.sandhu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/surender.sandhu/32/10312_2.png) [@surender.sandhu](https://community.auth0.com/u/surender.sandhu)\
**Post date:** [January 7, 2019, 6:25pm UTC](https://community.auth0.com/t/steps-to-run-react-sso-sample-application-on-windows/19708/3 "2019-01-07T18:25:47Z")

</div>

Hi,  
Thanks for the response , I have followed the same page which you have mentioned and pretty much done everything in there.  
I am able to make the servers running but when I am clicking on sign with Auth0 button on both the portals, its giving me error page.  
Please let me know what should I share with you?

Here are few logs though …  
events.js:167  
throw er; // Unhandled ‘error’ event  
^

Error: listen EADDRINUSE :::3001  
at Server.setupListenHandle [as \_listen2] (net.js:1286:14)  
at listenInCluster (net.js:1334:12)  
at Server.listen (net.js:1421:7)  
at Function.listen (C:\Users\surender.sandhu\Documents\AWS-SocialLogin\react-b2c-sso-ssoWithAuth0\react-b2c-sso-sso\server\node\_modules\express\lib\application.js:618:24)  
at Object. (C:\Users\surender.sandhu\Documents\AWS-SocialLogin\react-b2c-sso-ssoWithAuth0\react-b2c-sso-sso\server\server.js:52:5)  
at Module.\_compile (internal/modules/cjs/loader.js:688:30)  
at Object.Module.\_extensions…js (internal/modules/cjs/loader.js:699:10)  
at Module.load (internal/modules/cjs/loader.js:598:32)  
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)  
at Function.Module.\_load (internal/modules/cjs/loader.js:529:3)  
Emitted ‘error’ event at:  
at emitErrorNT (net.js:1313:8)  
at process.\_tickCallback (internal/process/next\_tick.js:63:19)  
at Function.Module.runMain (internal/modules/cjs/loader.js:744:11)  
at startup (internal/bootstrap/node.js:285:19)  
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)  
npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! server@1.0.0 start: `node server.js`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the server@1.0.0 start script.  
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

---

<div class="post-metadata">

**Author:** ![surender.sandhu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/surender.sandhu/32/10312_2.png) [@surender.sandhu](https://community.auth0.com/u/surender.sandhu)\
**Post date:** [January 7, 2019, 8:33pm UTC](https://community.auth0.com/t/steps-to-run-react-sso-sample-application-on-windows/19708/4 "2019-01-07T20:33:00Z")

</div>

Hi,  
I,am able to move forward and login into both the portals ,  
But Buy Button is not working and I see “Error: getaddrinfo ENOTFOUND undefined undefined:443  
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:57:26)” Error in logs.  
And also single Log Out is not working, You have to Logout Explicitly from both the applications.  
Also Can you please help me out with having a directly going to Login page without clicking on the Sign with Auth0 Button.

Thanks,  
Surender

---

<div class="post-metadata">

**Author:** ![bruno.krebs](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bruno.krebs/32/4382_2.png) [@bruno.krebs](https://community.auth0.com/u/bruno.krebs)\
**Post date:** [January 8, 2019, 11:49am UTC](https://community.auth0.com/t/steps-to-run-react-sso-sample-application-on-windows/19708/5 "2019-01-08T11:49:28Z")

</div>

> [@surender.sandhu](#):
>
> Error: listen EADDRINUSE :::3001

Hi, on your previous message you added logs that contained the message above. What this means is that there is another process running on port 3001. Perhaps you started the app twice and forgot to kill the first one?

> [@surender.sandhu](#):
>
> Error: getaddrinfo ENOTFOUND undefined undefined:443

This error is happening on the backend, right? You probably forgot to set the “REACT\_APP\_AUTH0\_DOMAIN” env variable before running your app…

Now, regarding _“having a directly going to Login page without clicking on the Sign with Auth0 Button”_, [in this article, you will find a section called “Adding Features to Authenticated Users”](https://auth0.com/blog/react-tutorial-building-and-securing-your-first-app/). There, you will see a component called “SecuredRoute”. This component does what you want. If the user is not logged in, they are redirected to Auth0 so they can log in.

I hope that helps.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 29, 2019, 8:37am UTC](https://community.auth0.com/t/steps-to-run-react-sso-sample-application-on-windows/19708/6 "2019-08-29T08:37:40Z")

</div>



---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 7, 2019, 4:01pm UTC](https://community.auth0.com/t/steps-to-run-react-sso-sample-application-on-windows/19708/7 "2019-09-07T16:01:31Z")

</div>



---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 5, 2021, 11:43am UTC](https://community.auth0.com/t/steps-to-run-react-sso-sample-application-on-windows/19708/8 "2021-11-05T11:43:08Z")

</div>



---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 7, 2022, 1:49pm UTC](https://community.auth0.com/t/steps-to-run-react-sso-sample-application-on-windows/19708/9 "2022-03-07T13:49:33Z")

</div>


