These are chat archives for reactioncommerce/reaction

8th
Jun 2016
Aesop7
@Aesop7
Jun 08 2016 00:05
Thanks @aaronjudd It's really nice to see the upcoming changes consolidated and explained :+1:
Ryan Watts
@rwatts3
Jun 08 2016 02:57
is it possible to use reaction commerce as an api. For example I have a client who's site is built with a coldfusion application but they really like reaction commerce's setup and management. Is it possible to run reaction in a standalone instance and connect to it for product data and processing ?
Brent Hoover
@zenweasel
Jun 08 2016 02:58
Yes, you can connect to Reaction via DDP
then execute Meteor.methods. Most or all of the API is wrapped in Meteor.methods
DDP is basically just JSON over websockets
J T
@wytanj
Jun 08 2016 03:36
thank you @aaronjudd
Ryan Watts
@rwatts3
Jun 08 2016 04:04
Thank you Brent that's valuable information
Valery Orloff
@valorloff
Jun 08 2016 07:02

@prinzdezibel: check first if the new layout is copied over to shop document in mongodb

how to copy to mongo? ) can i insert layout entry to shops.json from fixture data? Whether the name of layout is enough?
I see layout array in shops collections, but, how to edit it? In customization guide nothing about it ((

Michael Jenny
@prinzdezibel
Jun 08 2016 10:04
@valorloff you dont need to copy anything. reaction does this automatically at startup. so you see your changes (from registry.js in your custom package) in the layout array in shop document!? that is important.
Arash Saidi
@arashsa
Jun 08 2016 10:17
Have any of you used this in production?
PolGuixe
@PolGuixe
Jun 08 2016 10:17
@zenweasel I want to customise Reaction so it handle multiple tenants. I see that in v14, you are moving to modules. How would you proceed? Would you create a module/s to extend the current Reaction code? I see that there is already a Shop instance, and several roles defined.
Arash Saidi
@arashsa
Jun 08 2016 10:18
I have a prospective client that needs a remake of their eCommerce site, and I have been playing with Meteor for some time, and came over this. Looks promising, but very little information online about use cases.
Brent Hoover
@zenweasel
Jun 08 2016 10:20
@PolGuixe that’s a good question. We are still hashing out what our extensibility framework will look like now that we are using packages.
You are probably safe doing something with a package as we will probably provide some sort of upgrade/transition plan.
We have a meeting about this very subject tomorrow and I expect to have a better handle on the direction then
@arashsa Here is one: https://getoutfitted.com/
There are couple more that I don’t have handy. But to be clear we don’t have a ton of sites out there that have been using Reaction for a long time. We are just getting a few of them off the ground now.
hrath2015
@hrath2015
Jun 08 2016 10:32
@arashsa also check https://hungrypeople.snaxter.ch/
Brent Hoover
@zenweasel
Jun 08 2016 10:41
Yes, that was the other one I was trying to think of
Arash Saidi
@arashsa
Jun 08 2016 10:45
thanks!
I have the app running locally, but how do I get the Dashboard up?
Is there a admin login that is set once the app starts?
Brent Hoover
@zenweasel
Jun 08 2016 10:58
when you run the app for the first time the login is displayed
If you missed it, you can just do ./reaction reset and it will create a new one
Just click on “Sign In” and enter that login and it should take you to the dashboard
Valery Orloff
@valorloff
Jun 08 2016 11:25
@prinzdezibel, i don't see my custom layout in array of shops collection, there are coreLayout only, how "does this automatically at startup"?
i did ./reaction reset with "no delete build" option, resulting a database reset
@varloff: Do you call registerPackage in your custom package?
and autoenable: true
J T
@wytanj
Jun 08 2016 11:48
Hey guys! Anybody has used /thinking of using RC as a microservice eventually? or decompose it
Brent Hoover
@zenweasel
Jun 08 2016 11:49
@wytanj that’s actually part of our long-term plan
Michael Jenny
@prinzdezibel
Jun 08 2016 11:49
@valorloff: see here for an example
J T
@wytanj
Jun 08 2016 11:50
hey @zenweasel really? in what capacity :)
Brent Hoover
@zenweasel
Jun 08 2016 11:50
Breaking down things like taxes, shipping, payment provider into things that can be run as services
J T
@wytanj
Jun 08 2016 11:51
but everything looks so attached to reaction core too
Brent Hoover
@zenweasel
Jun 08 2016 11:52
Not really. You can already swap out individual packges. But it will take some significant rewrites
but that’s the long term plan
J T
@wytanj
Jun 08 2016 11:54
yes @zenweasel i've noticed too. but i guess gotta wait on the 0.14 release too with a more import based structure
Brent Hoover
@zenweasel
Jun 08 2016 11:54
thats the first step
Valery Orloff
@valorloff
Jun 08 2016 12:15
@prinzdezibel , i get register.js from customization guide, added registry: [ and layout: [{ entries with changed layout and template entries,
there is nothing supernatural! but my server/register.js as it ignored,
api.addFiles("server/register.js", "server"); in package.js was there present,
DEFAULT_LAYOUT in main.js is present, all from customization guide)
what else is needed?
Michael Jenny
@prinzdezibel
Jun 08 2016 12:16
meteor add your:package ?
Valery Orloff
@valorloff
Jun 08 2016 12:17
no)
Michael Jenny
@prinzdezibel
Jun 08 2016 12:17
low hanging fruit, you know :)
you need to debug. I've pasted the code above where to look for
maybe @bre
maybe @zenweasel has another idea
Valery Orloff
@valorloff
Jun 08 2016 12:34
after meteor add new layout appeared in shops.layout array,
@prinzdezibel thanks for your unique help ))
Michael Jenny
@prinzdezibel
Jun 08 2016 12:34
@valorloff :)
NP
Ryan Watts
@rwatts3
Jun 08 2016 12:38
Is there a section in the docs that talks about creating custom schemas or custom product types. For example if I wanted to implement events as a product type with specific attributes
or manage hero sliders and page content
Ryan Watts
@rwatts3
Jun 08 2016 12:56
Also is there any official news as to when the CMS portion will be complete ?
Valery Orloff
@valorloff
Jun 08 2016 15:11
after enabling new custom package with custom products view, product-variant package stiil remains and underfoot, how to culturally turn off it in context of disjunction custom from core, in the light of future upgrades ?
but if we consider the case: custom product grid + core product detail or vice versa? what is best practice?
Valery Orloff
@valorloff
Jun 08 2016 15:19
if I do autoEnable: false for core product-package and products workflow move to custom package, what will happen after the RC update?
Aaron Judd
@aaronjudd
Jun 08 2016 16:21
@valorloff the autoEnable flag just enables/disable visibility in the workflow, the package will still be installed and display in the dashboard.. just not returned in ReactionApps or ReactionTemplate helpers
if you want to replace / remove a package, remove from .meteor/packages
@rwatts3 will be delivered with 0.15 for sure, had to put on hold for the modular refactoring efforts
Ryan Watts
@rwatts3
Jun 08 2016 16:25
Thank you I did not but will review now. Am I supposed to add custom schemas in the schema package or within my theme package
Aaron Judd
@aaronjudd
Jun 08 2016 16:28
you can customize within your own package, or at the app level. load order is important though, so you will want to have a dependency on the reaction-schemas, so that they are already instantiated - if you use in a custom package. App level (not in a package) loads last, so that works as well
Ryan Watts
@rwatts3
Jun 08 2016 16:31
Awesome thank you
Valery Orloff
@valorloff
Jun 08 2016 16:39
@aaronjudd , if i want replace RPV with custom, but at the same time I want to check for updates for RPV (reaction product variant)? )
Aaron Judd
@aaronjudd
Jun 08 2016 16:44
you could add a dependency for the core RVP (atmosphere) package in your custom package, remove the RVP package from the app level, add yours. Your RVP could then act as a wrapper, getting updates from the core package. should be noted, that since we’re moving to a import structure with 0.14, that it’d be similar approach, but the dependencies would be import’s instead. we’re still trying to work out the best way to approach this with 0.14 though. decoupling is the challenge we’re trying to solve right now with imports..
Valery Orloff
@valorloff
Jun 08 2016 16:58
so, simultaneously installed core and custom package impossible?
thanks)
Aaron Judd
@aaronjudd
Jun 08 2016 17:28
it’s possible..
all depends on what you are doing, but the easy scenario: extend schema, add new route in your custom package, but use all the core functionality.. that’s fine...
Ryan Watts
@rwatts3
Jun 08 2016 20:41
As I'm just starting out with reaction I just want to make sure I take the best approach. Is it common to modify files outside of the package. Or does the reaction team suggest keeping theming at the package level ? Also if I want to build a site then deploy mup doesn't seem to play nicely with reaction what are suggested deployment methods i know reaction had docs but I'd also like to compare against people who've tried and tested their solutions in other aspects.
Aaron Judd
@aaronjudd
Jun 08 2016 20:57
we suggest either just working at the app level, or by making your own packages, you should not need to modify any of the included/core packages. Mupx works, although people have different levels of luck with it. Our recommendation is to use Docker, or Galaxy. (and we’ve got a solution in the works ourselves, that will use Docker images, we are just waiting on resolution of some scaling issues before we launch it)
Ryan Watts
@rwatts3
Jun 08 2016 22:57
Thank you I appreciate the response