These are chat archives for reactioncommerce/reaction

26th
Sep 2017
Hamed
@papmodern
Sep 26 2017 03:45
you mean an specific header for aboutus page? or in layout?
shahid belal
@ConnectBelal_twitter
Sep 26 2017 04:41
how can i run reaction project in production mode?
androidice
@androidice
Sep 26 2017 09:19
on my end its taking too long and I think there is a problem in the page itself
@ConnectBelal_twitter you need to provide two configurations prod.settings.json and add reaction.json for your production
separated config should be configure depending on the target environment you want to run
meteor --raw-logs --settings settings/dev.settings.json
run meteor on that following command
androidice
@androidice
Sep 26 2017 09:24
replacing settings for production
Sophie He
@sophiehe
Sep 26 2017 14:57
We'll be starting the Reaction Action livestream in less than 5 minutes. Tune in here: https://reactioncommerce.zoom.us/w/196295787
José Luis Di Biase
@josx
Sep 26 2017 15:05
@papmodern i need to do a simple about page, with the header, and the link in the menu
is there any example with this?
Daniel Honig
@dhonig
Sep 26 2017 15:33
@papmodern The best resource for understanding workflow is the Checkout customization guide
Hamed
@papmodern
Sep 26 2017 15:51
@dhonig I'll take a look. Tnx
Daniel Honig
@dhonig
Sep 26 2017 15:51
You can see the workflow visualized in the checkout page
the visual reference should be helpful.
hint: its simpler than it seems
Hamed
@papmodern
Sep 26 2017 15:52
hmmm I hope so :))
Daniel Honig
@dhonig
Sep 26 2017 15:53
the other part is to look at the workflow scheam
schema
and how that is attached to collections
Hamed
@papmodern
Sep 26 2017 15:54
@josx Check the example-plugin. there is two important files: 1- aboutus.html in static folder and 2- register.js
@josx you just need to declare an static html file in client folder and register in in register.js (like as example-plugin)
@josx And read the Routes section of Customization Guide
@dhonig I understood that part. the unclear meaning for me is just workflow
And I've to say I think finally get the point of combined react/blaze system
Developers of RC made functional small components with react, and used templates for structural parts
Daniel Honig
@dhonig
Sep 26 2017 15:57
Well blaze is going to be further and further away until it is no longer used
Hamed
@papmodern
Sep 26 2017 15:57
And I'm working on using React component as template for another layout. Hope this works
@dhonig Is that officially expressed?
Daniel Honig
@dhonig
Sep 26 2017 15:58
Yes it is official :)
Josh Cox
@joshuacox
Sep 26 2017 15:59
@papmodern they said as much in the webinar that just went down
Daniel Honig
@dhonig
Sep 26 2017 15:59
And was just discussed in todays ReactionAction webinar and has been previously discussed
Hamed
@papmodern
Sep 26 2017 15:59
So I have to deal with it :D
Josh Cox
@joshuacox
Sep 26 2017 16:00
it does seem to be at critical mass, everything seems to be gravitating towards it uncontrollably, but for a project with react in its name, it sort of seems inevitable
Daniel Honig
@dhonig
Sep 26 2017 16:02
ReactionCommerce powered by Angular 2/3/4
@joshuacox
Hamed
@papmodern
Sep 26 2017 16:02
Angular?
Josh Cox
@joshuacox
Sep 26 2017 16:03
quick fork the project and make BlazeCommerce and AngularCommerce ;)
Daniel Honig
@dhonig
Sep 26 2017 16:03
VueCommerce
Hamed
@papmodern
Sep 26 2017 16:03
@joshuacox Hey Josh
@joshuacox I'm absolutely an angular developer. But I'm agree with React here in RC :shipit:
Guys I've seen something wired! . My plugin works fine but its not in packages collection of mongodb. How is it possible?
Josh Cox
@joshuacox
Sep 26 2017 16:06
you know if you asked me three months ago where I thought the whole world was heading I might've said Angular, I did a hackathon in august where one of the developers was adamant that Angular was dying and react was the way to go. I must say I am leaning toward agreement these days, but I'm still a react n00b so I may not be the greatest judge
Hamed
@papmodern
Sep 26 2017 16:08
hmmm that's sounds promising, We are starting a new big project on React
Daniel Honig
@dhonig
Sep 26 2017 16:09
I think the move to angular 2 was bad marketing and timing
so was biting the bullet on typescript
Hamed
@papmodern
Sep 26 2017 16:09
I love to code react with Kotlin <3 :D
Josh Cox
@joshuacox
Sep 26 2017 16:10
ya I'm leary and still recovering from the death of coffescript, but I do love the clean python-style code that some of these adhere to
Daniel Honig
@dhonig
Sep 26 2017 16:11
Yeah. For me its vanilla.
after coffee.
Hamed
@papmodern
Sep 26 2017 16:11
:+1:
"Guys I've seen something wired! . My plugin works fine but its not in packages collection of mongodb. How is it possible?" any idea???
Josh Cox
@joshuacox
Sep 26 2017 16:12
after reaction reset?
Hamed
@papmodern
Sep 26 2017 16:16
yep
Josh Cox
@joshuacox
Sep 26 2017 16:26
any errors in the console? do you have permission issues? etc
Hamed
@papmodern
Sep 26 2017 16:28
I found it !!!!
but its wired too :D
after removing dummy second shop from private/data/shops.json
Can I update register.js on mongodb manually? :-|
did any body test that?
Josh Cox
@joshuacox
Sep 26 2017 16:32
I mean you can edit everything manually in mongodb ;) But I'm not certain that's in the cards for regression testing
Daniel Honig
@dhonig
Sep 26 2017 16:49
you can do that, but Im not sure of the caching going on.....pretty certain it is loaded into memory and not touched again
so without a restart it may not take
Josh Cox
@joshuacox
Sep 26 2017 16:52
@papmodern Did reaction reset not work? Or are you trying to preserve products you've put in there?
Daniel Honig
@dhonig
Sep 26 2017 16:52
I hook into reaction reset and reload all of my sample product data
Josh Cox
@joshuacox
Sep 26 2017 17:04
and don't forget the fixtures
Hamed
@papmodern
Sep 26 2017 17:08
@joshuacox It works. I just want to find a faster way
Josh Cox
@joshuacox
Sep 26 2017 17:14
as for speed I find sticking everything in a RAM disk speeds things up a bit (but not as much as you'd think/hope). Any other performance tips?
Hamed
@papmodern
Sep 26 2017 17:29
I'm on ssd. so maybe it's not so helpful
Josh do you know how can I view list of current templates and components of RC?
Daniel Honig
@dhonig
Sep 26 2017 17:57
good question. other than some clever grep work I am not sure
there is a list of components in the doc
Josh Cox
@joshuacox
Sep 26 2017 17:57
while a bit of brute grep -r 'import React, { Component } from "react";' *|less, lol @dhonig
Hamed
@papmodern
Sep 26 2017 17:59
Does anyone know what is it means in Blaze? " {{> CoreNavigationBar coreNavProps}} "
Daniel Honig
@dhonig
Sep 26 2017 17:59
that is described in meteor documentation
Hamed
@papmodern
Sep 26 2017 17:59
@joshuacox And for templates?
@dhonig Can you give me proper link?
and you got me on the templates, but this'll get you close find . -iname '*.js' |grep template|less
Hamed
@papmodern
Sep 26 2017 18:03
@joshuacox more specific link please :D
Hamed
@papmodern
Sep 26 2017 18:07
Thanks a lot Josh <3 @joshuacox
Josh Cox
@joshuacox
Sep 26 2017 18:08
anytime!
José Luis Di Biase
@josx
Sep 26 2017 18:09
how to import data from my plugin? i have to do anything , it seems not working only putting json files in the private/data dir
Josh Cox
@joshuacox
Sep 26 2017 18:11
@papmodern I, also, cannot recommend enough the todo list tutorial on meteors main tutorial page it has both blaze and react versions so you can see both in action. @josx have you looked at the fixtures page? <--scratch that @josx, you might be talking about something else
Hamed
@papmodern
Sep 26 2017 18:26
@joshuacox Nice, Tnx
José Luis Di Biase
@josx
Sep 26 2017 18:43
@joshuacox i followed the fixtures page intructions, but i dont want to put the files into the root directory, i need to put that files in my own private/data plugin dir
i have to make hook so that can be happen
Hamed
@papmodern
Sep 26 2017 19:44
If you found the right way share the code please
CF
@ChenfengLiu
Sep 26 2017 22:21
I'm trying to find a faster way to import all my products. And I found this plugin
reaction-product-importer
Is anyone else using this plugin? I'm wondering where do I drop the CSV file to import my products?
CF
@ChenfengLiu
Sep 26 2017 22:31
Or is the plugin already integrated with Reaction?
Spencer Norman
@spencern
Sep 26 2017 22:37
That plug-in worked well for Reaction pre v1.0, but hasn't been updated recently. I built it when I worked for GetOutfitted, but it's been neglected for at least a year now. If anyone is interested in taking over maintenance of it, I'd be happy to pair with someone to update it over a weekend.
CF
@ChenfengLiu
Sep 26 2017 22:46
drop-file-to-upload.png
@spencern Oh, I thought this is the import button (screenshot).
Spencer Norman
@spencern
Sep 26 2017 22:48
Unfortunately not. U think that's the button to add a logo, but it's not clearly labeled
CF
@ChenfengLiu
Sep 26 2017 22:54
Oh yeah, it is. So for now should I create fixtures to store my product info?
like stated in the tutorial? Adding Fixtures
Daniel Honig
@dhonig
Sep 26 2017 22:55
@ChenfengLiu @spencern I took the plugin, updated it, removed some complicated functionality and re-released it as simple_product_Importer
YMMV but should work
I'm not interested in supporting the complex features of the original, but I'll fix any issues that relate to version incompatiblity https://github.com/boomerdigital/simple_product_import
just log an issue in github and give me a day or so
CF
@ChenfengLiu
Sep 26 2017 22:57
@dhonig Awesome! Thank you!
Daniel Honig
@dhonig
Sep 26 2017 22:57
The original plugin has some complicated features that I don' t believe will scale well to the community at large
@ChenfengLiu you will need to do a reaction-reset after installing the plugin
@ChenfengLiu the way to get started with that plugin is to install it, then to login to the admin, and export the sample data
configure your data to be similar. At first try just a few products. Then add more
CF
@ChenfengLiu
Sep 26 2017 23:06
@dhonig Do I just copy "/simple_product_import" to "/import/plugins/custom" to install it?
Daniel Honig
@dhonig
Sep 26 2017 23:07
yes
then reaction reset
then one of two things will happen
  1. you will see it in the admin panel
or
  1. you will get some kind of error on startup
CF
@ChenfengLiu
Sep 26 2017 23:17
@dhonig I see the importer tab in admin panel. No errors!
Daniel Honig
@dhonig
Sep 26 2017 23:21
@ChenfengLiu nice
The fun begins!
CF
@ChenfengLiu
Sep 26 2017 23:28
@dhonig Thank you for your help.
Daniel Honig
@dhonig
Sep 26 2017 23:29
No problems. Glad I could help.