These are chat archives for reactioncommerce/reaction

5th
Mar 2017
Long Nguyen Thanh
@longnguyenit94
Mar 05 2017 03:10
@zenweasel Hi admin! I need help on billing. I want to add a payment method (Communications products take money at the customer's address). Please help me to do what to do this.
Brent Hoover
@zenweasel
Mar 05 2017 03:16
You need to go into the Payments tab and enable one of the availahle payment methods
Long Nguyen Thanh
@longnguyenit94
Mar 05 2017 03:22
@zenweasel
I've done this. I want to add a form of payment is "Communications products and take money at the customer's address". I do not know what to do or edit in srouce file to do this
Brent Hoover
@zenweasel
Mar 05 2017 03:41
If you want to create a new payment method you would need to write a new plugin
Patrick Artounian
@partounian
Mar 05 2017 19:20
Does anyone else get errors like these thrown at startup? WARN Reaction: Error while importing to Tags: E11000 duplicate key error collection: meteor.Tags index: id dup key: { : "rpjCvTBGjhBi2xdro" }
My setup is stock code-wise, just played with product config.
Those errors are thrown every time the server restarts.
im ok
@ethanguy
Mar 05 2017 19:42
Hello, does Reaction Commerce provide a REST api ? I would need it to build a iOS/Android native app
Jeremy Shimko
@jshimko
Mar 05 2017 19:47
Reaction is built on top of Meteor (https://meteor.com) and most of the data is handled with the DDP protocol (essentially websockets). So the remote API is going to either be via DDP or (in the somewhat near future) GraphQL. There are no plans to write a REST API. However, if you aren’t interested in using DDP or GraphQL, you can install one of the REST packages for Meteor and that will convert all of the Meteor publications and methods into REST endpoints.
https://github.com/stubailo/meteor-rest
If you’re building on top of Reaction, you’ll definitely want to read pretty much this entire site…
https://guide.meteor.com/
im ok
@ethanguy
Mar 05 2017 19:51
@jshimko Thank you!
Patrick Artounian
@partounian
Mar 05 2017 19:54
I thought Meteor was supposed to be able to build apps out-of-the-box. Why do people say it does not work with Reaction?
Jeremy Shimko
@jshimko
Mar 05 2017 19:54
?
Reaction is Meteor
Patrick Artounian
@partounian
Mar 05 2017 19:57
Yes, I am aware but with Meteor you can use Cordova to build apps. Have you looked into that @ethanguy ?
im ok
@ethanguy
Mar 05 2017 20:00
@partounian Yes! But since my application is gonna be mobile-first, I want better performance on mobile.
im ok
@ethanguy
Mar 05 2017 20:06
Anyway I'm really happy this project is well funded and well maintained. The other node e-commerce platforms are kinda dead
Patrick Artounian
@partounian
Mar 05 2017 20:07
I'm on the same boat, I really like this project and hopefully can get some real work done, since I have a few plugin ideas.
im ok
@ethanguy
Mar 05 2017 20:08
@partounian Have you already started using it or just taking it into consideration?
Patrick Artounian
@partounian
Mar 05 2017 20:09
Well, I have just started working through a few docs for creating a plugin, but got interested into the upcoming GraphQL Meteor integration, so I'm spending a few minutes looking into that.
im ok
@ethanguy
Mar 05 2017 20:14
GraphQL - Meteor is gonna be DDP, not HTTP right?
Jeremy Shimko
@jshimko
Mar 05 2017 20:15
GraphQL is just standard HTTP POST requests
Patrick Artounian
@partounian
Mar 05 2017 20:15
Meteor is currently DDP.
Jeremy Shimko
@jshimko
Mar 05 2017 20:16
Meteor completely supports GraphQL instead of DDP at this point. It just hasn’t been implemented in Reaction yet.
im ok
@ethanguy
Mar 05 2017 20:17
Sorry this is why I don't understand. Meteor is basically WebSockets, but the GraphQL plugin is gonna stanrdard HTTP?
@jshimko THANKS
!!!!!
Jeremy Shimko
@jshimko
Mar 05 2017 20:17
and you can use both at the same time
Patrick Artounian
@partounian
Mar 05 2017 20:19
Patrick Artounian
@partounian
Mar 05 2017 21:51
How can I get the admin user info after first init? As now when I run "reaction run" I do not see the admin info, but ran reaction reset -n recently.
Brent Hoover
@zenweasel
Mar 05 2017 22:08
You’ll need to reaction reset again
im ok
@ethanguy
Mar 05 2017 23:31
Do you guys know any other website that is using Reaction in production other than this https://getoutfitted.com/?
Do all Reaction websites have that totally uncool white screen lag when launching?
It can take up to 5-10 seconds... I think that's a huge problem
Patrick Artounian
@partounian
Mar 05 2017 23:39
I can't speak for how optimized that website is, but a known problem with SPAs is long initial load.
Brent Hoover
@zenweasel
Mar 05 2017 23:39
Patrick Artounian
@partounian
Mar 05 2017 23:39
Server side rendering can help a bit with that.
Brent Hoover
@zenweasel
Mar 05 2017 23:40
There is at least one more that I can’t think of the name of right off the top of my head
The initial load time is a real issue that we are aware of
Patrick Artounian
@partounian
Mar 05 2017 23:45
Since Reaction has moved to react is it possible to render some things on the server side or are there other ideas for improvements put into place? @zenweasel
Brent Hoover
@zenweasel
Mar 05 2017 23:46
The solution is probably not just one thing, but server-side rendering is probably part of the answer. Our next dev cycle after this one will be focused on performance
im ok
@ethanguy
Mar 05 2017 23:46
Damn initial load can be very painful... on the page I sent I actually thought there was something broken and I kept refreshing the page, but I just had to wait for the bundle to download. Might this be a Meteor problem other than a React issue??
Patrick Artounian
@partounian
Mar 05 2017 23:46
It is a problem with many SPAs in general.
Any Meteor you stack a lot onto would probably be similar without extensive performance management
Brent Hoover
@zenweasel
Mar 05 2017 23:47
The primary issue is that you are essentially downloading the entire app on first load. It makes it quick and responsive after that, but makes the first download take a while
im ok
@ethanguy
Mar 05 2017 23:47
Damn I just realized that if you had a colored background and a spinner the user experience totally changes lol
add*
Patrick Artounian
@partounian
Mar 05 2017 23:49
I wouldn't say totally changes, but it tells the user it is okay to wait. It is still important to know most people are impatient anyhow
Brent Hoover
@zenweasel
Mar 05 2017 23:50
Yes, That is a suggestion we often hear. The issue is that you need to load and execute some code to have that, then load and execute the rest.
im ok
@ethanguy
Mar 05 2017 23:50
Agreed
Maybe in the inital markup you can add a spinning gif?
or a css spinner
Brent Hoover
@zenweasel
Mar 05 2017 23:52
well, we are always open to a PR :)
one thing is that almost no-one uses the stock home page