These are chat archives for reactioncommerce/reaction

17th
May 2019
Clayton Zaugg
@claytonzaugg
May 17 14:09
Is there anyone online that can assist with installation errors?
Loan Laux
@loan-laux
May 17 14:09
@claytonzaugg Go ahead?
Clayton Zaugg
@claytonzaugg
May 17 14:10
Using WSL on windows 10, I get the following error running make after cloning the repo
Creating reaction-next-starterkit_web_1 ... error

ERROR: for reaction-next-starterkit_web_1  Cannot start service web: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"/usr/local/src/reaction-app/bin/start\": stat /usr/local/src/reaction-app/bin/start: no such file or directory": unknown

ERROR: for web  Cannot start service web: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"/usr/local/src/reaction-app/bin/start\": stat /usr/local/src/reaction-app/bin/start: no such file or directory": unknown
ERROR: Encountered errors while bringing up the project.
Makefile:218: recipe for target 'start-reaction-next-starterkit' failed
make: *** [start-reaction-next-starterkit] Error 1
Loan Laux
@loan-laux
May 17 14:12
Ah... Never used WSL so I'm afraid I wouldn't be very helpful here. But I know some people here use Reaction on Windows, hopefully they can chime in and help you!
Clayton Zaugg
@claytonzaugg
May 17 14:13
Dang, okay thank you
Clayton Zaugg
@claytonzaugg
May 17 14:23
If anyone is awake and out there, who happens to know of this issue, I could use some help... pretty please with a cherry on top :D
Janus Reith
@janus-reith
May 17 14:38
@claytonzaugg Maybe Not the answer you would probably be
*answer you want, but you would probably ne best off by using a Linux VM
(sorry, autocorrection on my Phone)
Clayton Zaugg
@claytonzaugg
May 17 14:40
It's okay, I'll give it a shot that way then. Thank you
Janus Reith
@janus-reith
May 17 14:40
Meteor does a Lot of polling, and both Windows and OSX lack performance in Volume binds. A Linux VM would therefore probably bei faster and hassle free
WSL has additional issues, I believe mostly regarding the way paths are resolved here
You could solve/work around them, but IMHO Not worth the trouble
Clayton Zaugg
@claytonzaugg
May 17 14:41
I guess it's time to begin a dual boot setup :)
Janus Reith
@janus-reith
May 17 14:42
What would work is to use docker on the vm and bind a path, and use the Editor in your Host
Polling would be inside the virualized file system, and you probably wouldn't have issues then.
Or that - I'd always recommend trying to use a Linux based OS as daily driver ;)
Clayton Zaugg
@claytonzaugg
May 17 14:44
lol I used to have a mac, but I changed jobs and now I don't ;)
Janus Reith
@janus-reith
May 17 14:46
Bought a new 27" iMac at the begining of the year, now it is mostly sitting there doing nothing than playing Spotify while most of my productive work still happens on a notebook running Fedora..matter of preference probably
Marcin Brukiewicz
@Ancinek
May 17 14:54
Hey guys,
I'm having some troubles understanding how the authentication is supposed to work out here:
  1. The store management is handled by reaction but the whole use authentication is supposed to be handled by hydra? Does it mean running 2 separate servers?
  2. Why do we have an ability to e.g. turn of Facebook authentication in the operator panel – does it affect the hydra?
  3. My team is in the middle of developing a react based online store, I'm doing the authentication part. How am I able to setup a login in our SPA that connects directly to hydra?
    Can the user stay inside the store without being redirected to somewhere else during to registration/ login process? So far we used our own auth systems or Firebase – this feature was easily achievable in those.
Loan Laux
@loan-laux
May 17 14:59
@Ancinek
  1. Yes
  2. No, it's only on the Reaction side, see below for why.
  3. Hydra isn't an identity provider, the Reaction API is. This means that all the user details (passwords, emails etc) are stored on the Reaction side. Hydra manages tokens/sessions for clients and users, and it responds to standard OAuth 2 endpoints (but redirecting you to Reaction for performing the actual login/sign-up). Hope that's useful.
Marcin Brukiewicz
@Ancinek
May 17 15:01
Wow, that was fast! Thanks @loan-laux!
I'm reading the following article now, hope it guides me how to implement it directly in React:
https://www.ory.sh/oauth2-for-mobile-app-spa-browser
Loan Laux
@loan-laux
May 17 15:02
Keep us up to date on how that project evolves!
Marcin Brukiewicz
@Ancinek
May 17 16:29
Hmm, so am I forced to use Hydra in my store? I'm reading the docs on their site and still do not get it how am I supposed to easily implement a registration/ login in my React application
Richard Keller
@richardkeller411
May 17 18:36
@claytonzaugg I got WSL to work on building the make final I went through many problems with reaction but finally got it. I chased down Node incompatabilies build incompatabilites ( DOcker is Alpine Linux ) and finally got it working.
@claytonzaugg Make sure you do the make under the Bash Command Prompt
Marcin, I implemented Amazon Cognito very easy as a logon to our MVP prototype before Reaction. Checkout Amplify and see how it goes if you try that route.
Jerry Hammann
@hammannja
May 17 20:01
@claytonzaugg Were you able to get past that issue? You likely need to increase your container sizes to 6 GB from the default 2 GB.
Janus Reith
@janus-reith
May 17 20:28
@hammannja Sure this is relevant in WSL? - Would be good to know! AFAIK the lack of memory in default settings was an issue of Docker on OSX