These are chat archives for reactioncommerce/reaction

23rd
Apr 2019
progranime
@progranime
Apr 23 01:34 UTC
do we have docs or blog that explains the folder structure of the Reaction Commerce? Thanks
shanetierney
@shanetierney
Apr 23 03:40 UTC
I read somewhere that multi-tenancy was being removed in 2.0 -- is that true?
Janus Reith
@janus-reith
Apr 23 06:56 UTC
@shanetierney The APi should still cover mostfunctionality for multishops (everything that should be separated works with a field shopId) however the new decoupled nextjs frontend does not use it as far as i know.
Regarding the customer facing parts, maybe it could be as simple as repalcing the primaryshop query in the starterkit with something custom to determine shopId, e.g. by URL.
But I'm not sure if any administrative functionaility in the dashboard was lost when migrating to the new ui.
Loan Laux
@loan-laux
Apr 23 07:13 UTC

+1 @janus-reith. Multi-shop should work although it's not used by default on the starterkit. Simply having multiple domains point to the same load balancer and using the HTTP origin to determine the shopId should do the trick.

As far as multi-tenancy, technically everything is still there in the back-end code. It'll require a bit more wiring as that part was left untouched for a while, but you should be able to get it to work.

Karbal
@karbal
Apr 23 10:09 UTC
Hello everyone
is there anything to integrate **PayPal** in the version 2
Damien Cosset
@Tagada85
Apr 23 10:15 UTC
Hello. I'm having an issue following the tutorial. After running make start, everything seems to work fine. But localhost:3000 and localhost:4000 are just hanging and not loading anything? Is that normal? Is there something I am missing?
Loan Laux
@loan-laux
Apr 23 11:37 UTC
@Tagada85 Have you checked the logs of the backend container?
Damien Cosset
@Tagada85
Apr 23 12:23 UTC
I've run docker-compose logs -f in /reaction, /reaction-hydra and /reaction-next-starterkit. From what I can tell, there are not errors mentionned
Damien Cosset
@Tagada85
Apr 23 12:28 UTC
The backend container is reaction-next-starterkit yes?
Chandran
@chandrantwins
Apr 23 12:48 UTC
reaction is backend container ... reaction-next-starterkit is frontend @Tagada85
Ashwin
@ashwinsoni
Apr 23 12:58 UTC

It seems reaction does pre-rendering via prerender.io.
Found code here => https://github.com/reactioncommerce/reaction/blob/master/imports/plugins/core/core/server/startup/prerender.js

I am trying to run with below updated variable on my local
PRERENDER_SERVICE_URL=<public reaction url>
PRERENDER_TOKEN=<my token>
PRERENDER_HOST=<local prerender url>

But i am unable to prerender it and got the below error message,

GET <local prerender url>/merged-stylesheets.css?hash=3a462c142e44261f0b04c67a1891365d8d1c48cb net::ERR_ABORTED 400 (Bad Request)

Tried adding below code to serve merged-stylesheets.css file,

app.use("*", express.static(paths.resolve(process.cwd(), "../web.browser")));

Still no luck.

Although with my prerender.io setup i am able to view,

<local prerender url>/https://www.google.com/

Any help or direction appreciated.

Loan Laux
@loan-laux
Apr 23 13:06 UTC
@ashwinsoni Still using the Meteor storefront in production?
Ashwin
@ashwinsoni
Apr 23 13:11 UTC
Thanks @loan-laux for the response. I am trying to run reaction repo(reaction@2.0.0-rc.11)
Janus Reith
@janus-reith
Apr 23 13:34 UTC
@ashwinsoni There is no need for prrender.io then except for you wanting to make the admin dashboard to be crawlable by bots, which is probably not thr case.
In 2.0.0rx. 11 you have a separated frontend built using nextjs
nextjs uses a technique called isomorphic rendering
clients, including search engine crawlers, recieve a styled, constrcuted html page from the server, which is then hydrated on the client with the current values.
Displaying the initial page with relevant information also works on browsers not suporting any JS, therefore there is no gap anymore that prerender.io needs to fill.
puneetpapneja
@puneetpapneja
Apr 23 13:36 UTC
Hi
Loan Laux
@loan-laux
Apr 23 14:44 UTC
@ashwinsoni If you're trying to run Reaction, you should check out the reaction-platform repo and not just reaction. As @janus-reith said, the storefront is now on a separate service and reaction-platform handles launching the whole thing for you (on a dev machine that is).
Ashwin
@ashwinsoni
Apr 23 14:46 UTC
Thanks @janus-reith and @loan-laux for the details. :thumbsup:
Chandran
@chandrantwins
Apr 23 17:01 UTC
Hi I have deployed reaction-platform in docker
Loan Laux
@loan-laux
Apr 23 17:02 UTC
@chandrantwins All good so far?
Chandran
@chandrantwins
Apr 23 17:02 UTC
i have changed core file in reaction.. is that automatically update or i should execute make command again
i mean reaction repository file
it seems meteor fetching still old js files
its not loading new update js files
Loan Laux
@loan-laux
Apr 23 17:03 UTC
Sorry, you said you deployed Reaction in production, right?
Or are you talking about your dev version?
Chandran
@chandrantwins
Apr 23 17:03 UTC
in docker @loan-laux ..used for development purpose
yes
if i change in starter kit repository.. changed are updated automatically
Loan Laux
@loan-laux
Apr 23 17:04 UTC
Okay, my bad. It updates automatically. You should keep the logs open in a terminal so you can see the rebuild status: docker logs -f reaction_reaction_1
Chandran
@chandrantwins
Apr 23 17:04 UTC
oh ok @loan-laux ..i will check
Loan Laux
@loan-laux
Apr 23 17:04 UTC
The backend is slower than the storefront as it's built on Meteor. So you'll have to wait a bit more for it to refresh when you makes changes there.
Chandran
@chandrantwins
Apr 23 17:05 UTC
i was facing this problem
so i tried to solve by updating core files..
Loan Laux
@loan-laux
Apr 23 17:06 UTC
This should've been PR'd to core already... Surprised it wasn't
Chandran
@chandrantwins
Apr 23 17:07 UTC
How to overrite core file @loan-laux .. do you have anyy link?
Loan Laux
@loan-laux
Apr 23 17:07 UTC
What do you mean exactly?
Chandran
@chandrantwins
Apr 23 17:07 UTC
is that already fixed in 2.0 version @loan-laux
Loan Laux
@loan-laux
Apr 23 17:08 UTC
Well you're using the latest version, right?
I thought it was fixed but it may not have been. No idea on that.
Chandran
@chandrantwins
Apr 23 17:08 UTC
yes
ok @loan-laux any way i will check again with github source
Loan Laux
@loan-laux
Apr 23 17:10 UTC
:+1:
You could make a PR if it turns out not to be fixed yet
Chandran
@chandrantwins
Apr 23 17:10 UTC
ok sure @loan-laux
Chandran
@chandrantwins
Apr 23 17:56 UTC
i checked code @loan-laux ..it seems not yet fixed
Chandran
@chandrantwins
Apr 23 18:30 UTC
meteor://app/imports/plugins/core/orders/lib/extendShopSchema.js
i changed file.. but still loading old file.. its really strange
Chandran
@chandrantwins
Apr 23 19:13 UTC
Now its loaded new file.. but its taking long time.. to recompile
thanks @loan-laux for your guidance
Eliot Hills
@elhil
Apr 23 20:25 UTC
can I ask why there haven’t been any commits to the reaction core or storefront in a while? did development move somewhere else? is 2.0 development on hold?