These are chat archives for reactioncommerce/reaction

11th
Sep 2017
Joshua A Sells
@poundimal_twitter
Sep 11 2017 00:06
So to delete a product it has to be done at the database level
?
Brent Hoover
@zenweasel
Sep 11 2017 00:06
@poundimal_twitter Yes
Omniscient
@JoshuaRowe11_twitter
Sep 11 2017 06:03
Why is it taking like 8seconds for reaction to load??
Akarshit Wal
@Akarshit
Sep 11 2017 06:25
I wanted to work on #2743
After cloning the reaction repo, how do I initialize it with dummy data. And where are the credentials for the admin account.
Brent Hoover
@zenweasel
Sep 11 2017 06:29
It automatically populates with simple data and the admin info is available in the console on first run
Omniscient
@JoshuaRowe11_twitter
Sep 11 2017 06:30
Does anyone know how I could improve the first page load speed of Reaction?
it's at like 15s with the base default docker, on a 1gb VPS
or 12s
Akarshit Wal
@Akarshit
Sep 11 2017 06:32
@zenweasel I must have missed it, is there a way to access them again?
Brent Hoover
@zenweasel
Sep 11 2017 06:35
I had to look it up because I always forget, it’s admin@localhost/r3@cti0n
Akarshit Wal
@Akarshit
Sep 11 2017 06:35
Thanks :)
Omniscient
@JoshuaRowe11_twitter
Sep 11 2017 06:37
Any performance ideas? Sorry, I urgently need to decide whether to completely scrap using Reaction
Akarshit Wal
@Akarshit
Sep 11 2017 06:58
Also one more thing, where does the mongo connects to? Does it use the local database. If yes, what is the name of the db?
Brent Hoover
@zenweasel
Sep 11 2017 07:03
by default it uses the built-in mongo
the default is meteor
Akarshit Wal
@Akarshit
Sep 11 2017 07:04
How can I access the built-in mongo?
Brent Hoover
@zenweasel
Sep 11 2017 07:04
if the app is running you just access it like you would any instance of mongo. It always runs on the port your app is running on +1. e.g. if your app is running on 3000 then the mongo is on 3001
you can also open another terminal window and run meteor mongo
Akarshit Wal
@Akarshit
Sep 11 2017 07:06
+1 for meteor mongo
Brent Hoover
@zenweasel
Sep 11 2017 07:06
I use Robomongo personally
Akarshit Wal
@Akarshit
Sep 11 2017 07:07
Yes, it's good. But I am used to the black terminal :P
Brent Hoover
@zenweasel
Sep 11 2017 07:08
@JoshuaRowe11_twitter You will probably want to upgrade the amount of memory to at least 2GB. Are you running your mongo on the same machine?
shahid belal
@ConnectBelal_twitter
Sep 11 2017 07:20
Hi, I am getting error when building the reaction for docker image (reaction build mycustom command). I am getting below error:

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7784 0 7784 0 0 5967 0 --:--:-- 0:00:01 --:--:-- 5969

... Installing Meteor 1.5.1

Downloading Meteor distribution
Retrying download in 5 seconds...
Retrying download in 5 seconds...
Retrying download in 5 seconds...
Retrying download in 5 seconds...
Retrying download in 5 seconds...
Retrying download in 5 seconds...
Retrying download in 5 seconds...
Retrying download in 5 seconds...
Retrying download in 5 seconds...
Retrying download in 5 seconds...
The command '/bin/sh -c cd $APP_SOURCE_DIR && $BUILD_SCRIPTS_DIR/install-deps.sh && $BUILD_SCRIPTS_DIR/install-node.sh && $BUILD_SCRIPTS_DIR/install-phantom.sh && $BUILD_SCRIPTS_DIR/install-mongo.sh && $BUILD_SCRIPTS_DIR/install-meteor.sh && $BUILD_SCRIPTS_DIR/build-meteor.sh && $BUILD_SCRIPTS_DIR/post-build-cleanup.sh' returned a non-zero code: 1

Error: Docker build failed. Exiting.

Please help.
Brent Hoover
@zenweasel
Sep 11 2017 07:39
It looks like you are having network problems
Akarshit Wal
@Akarshit
Sep 11 2017 07:50
Is there some quick way to do a "buy and checkout" for development purposes?
Brent Hoover
@zenweasel
Sep 11 2017 07:50
what do you mean?
Akarshit Wal
@Akarshit
Sep 11 2017 07:51
I want to buy a item(for testing purposes) but without entering all the shipping detail/shipping method info.
Brent Hoover
@zenweasel
Sep 11 2017 07:52
No. Chrome usually enters all the data for me, but that’s probably not what you mean
Akarshit Wal
@Akarshit
Sep 11 2017 07:53
OK cool! I will go the long way.
shahid belal
@ConnectBelal_twitter
Sep 11 2017 07:54
My network is working well.
Akarshit Wal
@Akarshit
Sep 11 2017 07:59
On the checkout screen it shows No shipping methods are configured. Configure now. But I have already turned on the Flat rate in shipping. There is even a entry in the Shipping table of db. Is there something else I have to turn on?
Brent Hoover
@zenweasel
Sep 11 2017 08:00
@ConnectBelal_twitter that error you are getting is due to a connectivity problem between you the wherever Meteor is downloading from
@Akarshit Just click on the edit icon for the address and re-save
You need to trigger a recalc on the cart of the newly-enabled shipping method to show up
Akarshit Wal
@Akarshit
Sep 11 2017 08:01
Trying
Did that still getting No shipping methods are configured. Configure now. in the 3rd step.
Brent Hoover
@zenweasel
Sep 11 2017 08:06
have you actually enabled a shipping method, not just turned on Flat Rates?
Akarshit Wal
@Akarshit
Sep 11 2017 08:07
No I haven't.
Brent Hoover
@zenweasel
Sep 11 2017 08:07
You have to do that
Akarshit Wal
@Akarshit
Sep 11 2017 08:07
That is what I was asking if there was some easy way to do that in dev.
Brent Hoover
@zenweasel
Sep 11 2017 08:07
select a method, check enable and click save
you can enable shipping/payment methods via your settings.json
shahid belal
@ConnectBelal_twitter
Sep 11 2017 08:08
I checked the my system Internet connection and Internet is working fine here. Could you please advise any other way for creating the docker image as I have tried it in server also but getting same issues.
Akarshit Wal
@Akarshit
Sep 11 2017 08:08
Is it documented somewhere how I can do that.
shahid belal
@ConnectBelal_twitter
Sep 11 2017 08:08
Everytime it failed with the same error.
Akarshit Wal
@Akarshit
Sep 11 2017 09:07
For the payment method I chose PayPal PayFlow but in that it's asking for API Client ID and API Secret. Can I fill some dummy values there and get it to work?
I have chosen Sandbox Mode in the Payflow mode.
Brent Hoover
@zenweasel
Sep 11 2017 09:09
No, you can’t. But you can use the Example Payment Method which doesn’t require you to have a developer key
Akarshit Wal
@Akarshit
Sep 11 2017 09:14
OK, I added the Example Provider with a empty API Key and then when I am entering the card detail and clicking Complete your order I am getting a exception on server
Exception while invoking method 'exampleSubmit' Error: Match error: Failed Match.Where validation in field number
    at exports.check (packages/check.js:56:15)
    at [object Object].exampleSubmit (imports/plugins/included/payments-example/server/methods/example.js:64:5)
    at packages/check.js:129:16
    at [object Object]._.extend.withValue (packages/meteor.js:1126:17)
    at Object.exports.Match._failIfArgumentsAreNotAllChecked (packages/check.js:128:41)
    at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1765:18)
    at packages/ddp-server/livedata_server.js:719:19
    at [object Object]._.extend.withValue (packages/meteor.js:1126:17)
    at packages/ddp-server/livedata_server.js:717:46
    at [object Object]._.extend.withValue (packages/meteor.js:1126:17)
    at packages/ddp-server/livedata_server.js:715:46
    at [object Object]._.extend.protocol_handlers.method (packages/ddp-server/livedata_server.js:689:23)
    at packages/ddp-server/livedata_server.js:559:43
Brent Hoover
@zenweasel
Sep 11 2017 09:15
you have to enter a credit card number that passes a Luhn check, e.g. 4242424242424242
Akarshit Wal
@Akarshit
Sep 11 2017 09:17
Finally I purchased the Example product :)
Thanks @zenweasel
Brent Hoover
@zenweasel
Sep 11 2017 09:17
:+1:
Ezeoke Onyekachi Samuel
@OnyekachiSamuel
Sep 11 2017 10:09
Hi, I am trying to convert Reaction commerce to RESTful API. I read the article on how to easily convert reaction commerce to RESTful API by installing simple:rest but I am getting errors accessing localhost:3000/publications/Accounts and localhost:3000/publications/Carts endpoints from postman. Please i need help
Ezeoke Onyekachi Samuel
@OnyekachiSamuel
Sep 11 2017 10:25
Anyone here?
Brent Hoover
@zenweasel
Sep 11 2017 10:30
what’s the problem you are having?
Omniscient
@JoshuaRowe11_twitter
Sep 11 2017 11:50
Yeah mongo is on same machine
unfortunately im going have to scrap using Reaction as it doesnt fulfill my requirements, like running under 12 second loadtime on 1gb machine
might come back to it in the future
Thank you.
Brent Hoover
@zenweasel
Sep 11 2017 11:51
Okie dokie
Akarshit Wal
@Akarshit
Sep 11 2017 14:23
Why are there 2 Accounts here https://imgur.com/a/fpgS0
Josh Cox
@joshuacox
Sep 11 2017 14:36
is there something equivalent to yes y|reaction init I don't believe there is a -y option, but that is the sort of thing I'm looking for
I want reaction init to complete without interaction (*and install meteor on its own)
Jeremy Shimko
@jshimko
Sep 11 2017 14:38
There is not. I suppose we could add that, but if you know you don’t have Meteor at the install location, why not just prepend
curl https://install.meteor.com/ | sh && reaction init
Josh Cox
@joshuacox
Sep 11 2017 14:38
ahh but meteor 1.5.2 just droppped and the above does not work
reaction wants 1.5.1
Jeremy Shimko
@jshimko
Sep 11 2017 14:39
it should automatically download the correct version when the app starts
Josh Cox
@joshuacox
Sep 11 2017 14:40
ya that's why I'm doing a yes y|reaction init now in my dockerfile but that is kind of ugly
Jeremy Shimko
@jshimko
Sep 11 2017 14:40
I know that’s not ideal, but it wouldn’t be any different if the cli was doing it for you because until reaction init has run, the version of Reaction/Meteor isn’t known yet.
Our docker base takes care of that for you though. That checks the current version of Meteor in the current instance of Reaction and downloads the right one the first time. Maybe you can steal some of that script for whatever you’re doing?
Josh Cox
@joshuacox
Sep 11 2017 14:42
ya it works for now, if I get around to it I might get a PR done for a -y option, my base builds still die with those weird errors, but ya I might just steal that step
Josh Cox
@joshuacox
Sep 11 2017 14:43
@jshimko thanks I am going to try that
Jeremy Shimko
@jshimko
Sep 11 2017 14:46
While reaction-cli could probably do that -y flag, I feel like it’s possibly asking for a support headache because it won’t work for Windows users. Automating a Meteor install already has a pretty easy solution on unix platforms (that one line curl command), but Windows requires a manual .exe download/execution.
That’s why reaction-cli will currently do it for you on Mac/linux, but it spits out a download link if you’re on Windows.
Josh Cox
@joshuacox
Sep 11 2017 14:48
I really do empathize with you there as the windows issues are easily the worst part of supporting any project
Jeremy Shimko
@jshimko
Sep 11 2017 14:48
truth
Josh Cox
@joshuacox
Sep 11 2017 14:48
but it's the "easy" platform?!? :P
Joshua A Sells
@poundimal_twitter
Sep 11 2017 18:14
Where is the react component located for the productGrid. I was trying to follow the tutorial and it is broken. Mentioned in an issue in the git reactioncommerce/reaction-example-plugin#17
Sophie He
@sophiehe
Sep 11 2017 20:03
Mark your calendars! Join us on 9/26 at 8am PT for the next Reaction Action livestream. Save your spot today: getrxn.io/reaction-action-september
Joshua A Sells
@poundimal_twitter
Sep 11 2017 20:15
How is it that there are 5000+ stars on github there are so few tutorials, production sites, and stackexchange threads?
Lorenzo Campanis
@lcampanis
Sep 11 2017 20:27
@poundimal_twitter it's a growing community, but knowing what's been out there for the last so many years, the technology reaction brings is one of a kind, along with the UX that's been put in the features that you see, do make Reaction stand out. Stable releases just came out though, which means that more tutorials will be coming out very soon, the community is vital to getting those out. Those stars do show that the community is behind all these efforts. If you have any feedback I'm sure Reaction would be happy to take this on and deliver something out of it. ;)
machiko
@machikoyasuda
Sep 11 2017 20:53
@poundimal_twitter Hi Joshua - What version and branch of Reaction did you try it on? The ProductGrid should be back in Reaction on 1.4.1
Joshua A Sells
@poundimal_twitter
Sep 11 2017 21:58
I dropped in the code from that repo right into a fresh install and get the same error he is. https://github.com/reactioncommerce/reaction-example-plugin
Where is the productGrid component located?
Joshua A Sells
@poundimal_twitter
Sep 11 2017 22:33
So found the productGrid Component nested away in the product-variant. The product variant has been heavily rewritten in react. So to use those components in my plugin following the tutorial I believe I would have to import everything there some how. I will say this makes getting started with this framework a bit of a turn off as the documentation doesn't mention much on react at all. This in addition to the extremely long loading / reloading that disrupts the development workflow will keep me from using this anytime soon. But I wish you guys the best of luck going forward.
Brent Hoover
@zenweasel
Sep 11 2017 22:48
@poundimal_twitter Yeah, that’s a valid criticism of the tutorial. We need to reivist that tutorial and rewrite the section on overriding templates because Blaze has been removed for most (but not all) consumer-facing elements. I just haven’t had the time to rewrite it yet while trying to get other features out the door.