These are chat archives for reactioncommerce/reaction

1st
Dec 2017
machiko
@machikoyasuda
Dec 01 2017 00:05
Reaction 1.6 is out with Meteor 1.6 :sparkles: https://github.com/reactioncommerce/reaction/releases/tag/v1.6.0
José Luis Di Biase
@josx
Dec 01 2017 00:11
great news!
anyone has tested if it increase the performance on reload server or client?
Josh Cox
@joshuacox
Dec 01 2017 00:21
@machikoyasuda :+1: both are great news
machiko
@machikoyasuda
Dec 01 2017 00:42
Exciting work-in-progress PR from @aldeed - reactioncommerce/reaction#3331
Use NPM SimpleSchema rather than Meteor
yashsaxena
@yashsaxena
Dec 01 2017 06:54
Hello All, its amazing to see this slack channel! I'm new to reactioncommerce universe & im still tying to figure out the things. I'm trying to explore how good reaction commerce will be if I shift to it - I've doubts about how opensource reactionecom vs the paid version works out?
I this the right place to pose those questions?
hitachi19
@hitachi19
Dec 01 2017 07:10
@prinzdezibel thank you
Michael Jenny
@prinzdezibel
Dec 01 2017 08:02
@ChenfengLiu It sounds like you're confusing schemas with collections. In RoboMongo you can browse all documents that you add to an collection, but only, if you've inserted them before.
MongoDB itself doesn't bother with schemas at all. you can put anything in there, regardless of its inner structure
@yashsaxena There's no distinction between a commercial and a open-source Reaction. The only difference is, that Reaction offers a PAAS solution to host your Reaction shop, so you don't need to do the operation.
yashsaxena
@yashsaxena
Dec 01 2017 09:09
@ChenfengLiu I've lots of question regarding reaction - which I guess you'd have if you discover a new platform and are excited to explore it. Whats the best way to get these answers and explore reaction's capabilities, modularity, speed etc.? Will you point to some place I should read myself.
Michael Jenny
@prinzdezibel
Dec 01 2017 10:49
@yashsaxena Completely on your side. One thing, i'd be interested in is to see actually something, right?
You may want to check out our community showcase room: https://reactioncommerce.com/community-showcase
The next step is to actually install Reaction locally and play with it, go to the admin backend and see if you like it.
Michael Jenny
@prinzdezibel
Dec 01 2017 10:55
Josh Cox
@joshuacox
Dec 01 2017 14:09
4) then fork reaction, setup continuous integration, and deployment through circleCI by hijacking reactions circleCI config and get it to build and deploy your branches
5) play with the example plugin git submodule add -f -b master https://github.com/reactioncommerce/reaction-example-plugin.git imports/plugins/custom/myExample hack away
6) setup a deployment
7) sign up for shippo, tax cloud, stripe and a few other accounts, add these in your store
8) profit!
Michael Jenny
@prinzdezibel
Dec 01 2017 15:01
I like 8 most
least work
RJ Garcia
@ragboyjr
Dec 01 2017 18:13
The reaction docs (https://docs.reactioncommerce.com/reaction-docs/master/testing-reaction) mention to view the tutorial on writing tests on reaction, but I wasn't able to actually find that tutorial. Any ideas on where that is?
RJ Garcia
@ragboyjr
Dec 01 2017 18:27
And then i guess another question would be: Is there any way to run individual tests in reaction via the CLI that are relatively quick to execute? Running reaction test on my mac easily takes 2 minutes to build before any tests are executed.
machiko
@machikoyasuda
Dec 01 2017 18:28
RJ Garcia
@ragboyjr
Dec 01 2017 18:28
y, that's the same link i pasted in
machiko
@machikoyasuda
Dec 01 2017 18:28
oh oops!
RJ Garcia
@ragboyjr
Dec 01 2017 18:28
:)
For more detailed explanation see the tutorial for writing tests for Reaction
I'm referring to the paragraph right before the Acceptance Testing header
Found it! Sorry it it hard to find.
Also there is a way to run only 1 or a few tests at a time on Mocha
RJ Garcia
@ragboyjr
Dec 01 2017 18:31
I've been able to run tests with jest for simple unit tests that don't require the meteor environment, but not anything that requires meteor
And thanks for that document!
machiko
@machikoyasuda
Dec 01 2017 18:33
Ah I see -- Jest for react components?
RJ Garcia
@ragboyjr
Dec 01 2017 18:34
No, i just saw that the package.json had the test script setup with jest. So i just invoked yarn test {path-to-test-dir}
So just using jest for running bdd style unit tests
RJ Garcia
@ragboyjr
Dec 01 2017 18:40
That document was very helpful, going to try a few things and let you know. Thanks @machikoyasuda
machiko
@machikoyasuda
Dec 01 2017 18:44
Awesome
RJ Garcia
@ragboyjr
Dec 01 2017 18:45
ok, so, running reaction test like the docs mention runs everything and it also starts up the app from cold which takes a very long time. Do you know of anyway to get quicker feedback for running/developing tests?
machiko
@machikoyasuda
Dec 01 2017 18:47
No :( You can run one test or spec at a time by adding .only to the describe or it blocks
are you using Reaction 1.6?
RJ Garcia
@ragboyjr
Dec 01 2017 18:49
yes, running the latest everything. Reaction 1.6, meteor 1.6, node 8
Forgot to add the .only, that definitely helps. Jest's .only is only at a file level, i forgot that mocha's works over the entire test suite which is awesome.
RJ Garcia
@ragboyjr
Dec 01 2017 18:53
But with .only, i'm clocking about 1m 10s average for running reaction test for an empty test.
Curious if that's expected, or if something is wrong with my setup
Kenneth Beartusk
@beartusk
Dec 01 2017 18:58
Hey everyone, I plan to temporarily run my Reaction store on a subdomain until I can develop a more fully fledged out website on the Reaction Commerce framework. Until then, I need to place a simple link to my current Home Page somewhere on the navigation panel on my Reaction store. Can anyone give me a hint of where to find the Reaction files that control this aspect of the application, or if there is something already built into the base UI that will allow me to do this?
RJ Garcia
@ragboyjr
Dec 01 2017 19:01
Scratch that, it's more like 2 minutes, it was previously failing at 1m
machiko
@machikoyasuda
Dec 01 2017 19:12
@ragboyjr Fairly standard unfortunately/
RJ Garcia
@ragboyjr
Dec 01 2017 19:13
OK :cry:
Thanks for your help @machikoyasuda
Then for reaction devs, how do you prototype code in the reaction system?
If this was a REST Api, I could go about running the server, and then hitting the endpoint I want to test via any http client, or even create a test endpoint to get somewhat fast feedback. Is there any equivalent in the meteor/reaction system?
Josh Cox
@joshuacox
Dec 01 2017 19:20
@beartusk look at the routes docs
Kenneth Beartusk
@beartusk
Dec 01 2017 19:22
@joshuacox Ok will do
Josh Cox
@joshuacox
Dec 01 2017 19:26
@ragboyjr you mght look at @jshimko 's api base I keep meaning to toy around with that, I'm not even certain it's working, perhaps @jshimko could tell us?
Patrick Newell
@pnewell4_twitter
Dec 01 2017 19:27
@beartusk if you are simply looking to add a link in your navigation to your root domain, the Components API Documentation does something very similar as it's example
RJ Garcia
@ragboyjr
Dec 01 2017 19:28
@joshuacox it feels a bit weird to install a graphql server so that I can test prototype/test my code
I'm just looking for away to quickly prototype/develop code without having to wait 2+ min to run a test/start the app. I'm almost wondering if it'll be quicker to just start up the app normally and build simple UI elements that trigger meteor methods
Josh Cox
@joshuacox
Dec 01 2017 19:30
ya that might not be applicable, sorry reading the beginning of your thread now, as far as timing goes, circleCI is a decent benchmark with it's timing info
RJ Garcia
@ragboyjr
Dec 01 2017 19:32
ok
Josh Cox
@joshuacox
Dec 01 2017 19:38
I notice in the docs of that api repo that @jshimko is using yarn, I know that the release of 1.6 has improved things in this area by using node8, which is supposedly converging upon the performance gap that yarn has on npm. Is anyone still using yarn with 1.6?
Kenneth Beartusk
@beartusk
Dec 01 2017 21:57
@pnewell4_twitter Thank you very much Patrick!
RJ Garcia
@ragboyjr
Dec 01 2017 22:33
Would anyone know why putting an *.app-test.js file in a plugins server/lib directory would cause reaction test to fail?
Kenneth Beartusk
@beartusk
Dec 01 2017 22:43
@pnewell4_twitter So for just replacing or extending a component, I create a plugin and place my code in there correct? Is there anything the Reaction Documentation doesn't explain that is important for this process?
machiko
@machikoyasuda
Dec 01 2017 22:53
@beartusk you got it. That's a much better method than the alternative of forking Reaction entirely.
Kenneth Beartusk
@beartusk
Dec 01 2017 23:20
@machikoyasuda Ok, and when creating a plugin for component manipulation, is the client and server directory format pertinent? And, if so, in which directory would i implement my new-component.js file?
machiko
@machikoyasuda
Dec 01 2017 23:21
@beartusk Client, b/c you're making a change to a client-side template
Kenneth Beartusk
@beartusk
Dec 01 2017 23:32
@machikoyasuda Ok, thank you.