These are chat archives for reactioncommerce/reaction

16th
Aug 2016
Aaron Judd
@aaronjudd
Aug 16 2016 05:20
@Aesop7 I’m guessing you’ve seen #883 and #357
@ScyDev has been working on some of this and I think could use some help, we’re continuing to keep this kind of functionality in progress and are getting small pieces in for every release as well
@paulgrever that might actually be the first reason I’ve heard that we should use validated methods approach. the issue here is that you want to extend a core schema, but the core methods don’t validate against your custom schema.right? @jshimko thoughts about this?
Aaron Judd
@aaronjudd
Aug 16 2016 05:26
@atam we released an update to the cli today, try npm i -g reaction-cli if you still have issues, please create an issue on GH
@nenti see .reaction/docker/packages.example modify this in a deployment will add additional atmosphere packages. @jshimko is working on a way to do this for imports/plugins right now
Lukas Sägesser
@ScyDev
Aug 16 2016 07:59

@Aesop7 We have a production ready multi-seller marketplace based on Reaction at this fork: https://github.com/ScyDev/reaction

See the shop here: https://www.snaxter.ch/

We are currently working to merge it back with Reaction HEAD.

Lukas Sägesser
@ScyDev
Aug 16 2016 08:37
@Aesop7 Main features of our marketplace:
  • Multi seller marketplace
  • Product for sale on date
  • Product filtering by date and location
  • Product locations
  • Product overview on Google Maps
  • Simplified product creation
  • Simplified checkout
  • Profile image upload for users
  • Public seller profile
  • 5 star rating for sellers
Owen Hoskins
@owenhoskins
Aug 16 2016 08:53
Hello all, I've got another inquiry: in /server/methods/media.js two methods are exported removeMedia and updateMediaPriorities. They are imported in /server/methods/index.js. How are they intended to be imported and called from the client??
Brent Hoover
@zenweasel
Aug 16 2016 11:43
if they are in those folders they are not meant to be used on the client-side
I think those were methods created by @newsiberian. I don’t see them being used anywhere, but you could wrap them in a Meteor method to make them accessible to the client
Owen Hoskins
@owenhoskins
Aug 16 2016 12:10
Ok, g2k, thanks.
Jeremy Shimko
@jshimko
Aug 16 2016 14:47
@owenhoskins you can call them the same way you normally would with Meteor.call()
from server or client
Elroy Fernandes
@hazephase_twitter
Aug 16 2016 15:58
is there a way to export all my products with all details in a CSV file ?
I found 1 jason file but that did not have all the data in it. For example the options data was not saved there
Elroy Fernandes
@hazephase_twitter
Aug 16 2016 16:12
also how can I add a search like Elastic on my site
Paul Grever
@paulgrever
Aug 16 2016 17:12
@aaronjudd @jshimko but the core methods don’t validate against your custom schema.right? that’s correct
Jeremy Shimko
@jshimko
Aug 16 2016 17:16
@paulgrever, sent a direct message
Aaron Judd
@aaronjudd
Aug 16 2016 17:55
@RefactorMan @aaronmann613348 that’s an ignorable error.. it’s from a dependency, and we have it on the roadmap to replace
Owen Hoskins
@owenhoskins
Aug 16 2016 18:37
This message was deleted
Jeremy Shimko
@jshimko
Aug 16 2016 18:38
This message was deleted
Owen Hoskins
@owenhoskins
Aug 16 2016 19:56
@jshimko: Got any guidelines for specifying Meteor.settings in a docker container?
Jeremy Shimko
@jshimko
Aug 16 2016 20:00
You just need to stringify the contents of your settings file into the METEOR_SETTINGSenvironment variable.
Owen Hoskins
@owenhoskins
Aug 16 2016 20:03
something like METEOR_SETTINGS \"$(cat settings.json)\"?
Jeremy Shimko
@jshimko
Aug 16 2016 20:05
If you’re on OSX, this will put the stringified contents of it on your clipboard.
echo $(cat settings.json) | pbcopy
Or in a Docker run command…
docker run -e METEOR_SETTINGS='$(cat settings.json)' …
those single quotes are important because the settings file will have double quotes
and the full string needs to be surrounded in that case
Or do the clipboard one and add the contents of that to a Docker Compose file so you never have to type it in a command
Owen Hoskins
@owenhoskins
Aug 16 2016 20:08
Got it! nice clipboard trick.
Jeremy Shimko
@jshimko
Aug 16 2016 20:08
yeah, pbcopy is super useful
Antonin Hackenberg
@TondaHack
Aug 16 2016 20:11
Hi @aaronjudd. Thanks for response. I see your team did a lot of work and also there is a lot of work to do. Do you think that reaction can handle this big amount of products?
Jeremy Shimko
@jshimko
Aug 16 2016 20:11

Docker Compose example…

# docker-compose.yml

reaction:
  image: reactioncommerce/reaction:latest
  links:
    - mongo
  ports:
    - "80:80"
  environment:
    ROOT_URL: "https://example.com"
    MONGO_URL: "mongodb://mongo:27017/meteor"
    METEOR_SETTINGS: '{ "reaction": { "REACTION_USER": "admin", "REACTION_AUTH": "admin", "REACTION_EMAIL": "example@gmail.com" }}'

mongo:
  image: mongo:latest
  command: mongod --storageEngine=wiredTiger

Then all you have to run is docker-compose up -d

Of course, that’s a weird example because all of those values can be set as their own env vars, but you get the idea.
Owen Hoskins
@owenhoskins
Aug 16 2016 20:12
Yeah -- been meaning to try compose again!
Jeremy Shimko
@jshimko
Aug 16 2016 20:13
Yeah, I always recommend it even if you’re only using one container. It’s way better than huge docker run commands. It’s like a config file for docker run.
Owen Hoskins
@owenhoskins
Aug 16 2016 20:14
If I am using compose.io I can just include it instead of the mongo image?
Jeremy Shimko
@jshimko
Aug 16 2016 20:14
yep
Owen Hoskins
@owenhoskins
Aug 16 2016 20:14
Cool, well I should just look up some docs then and stop procrastinating. (got used to copying huge docker run commands)
Jeremy Shimko
@jshimko
Aug 16 2016 20:15
reaction:
  image: reactioncommerce/reaction:latest
  ports:
    - "80:80"
  environment:
    ROOT_URL: "https://example.com"
    MONGO_URL: "mongodb://compose_url"
    METEOR_SETTINGS: '{}’
oh gitter. why can’t you be more like slack sometimes
Owen Hoskins
@owenhoskins
Aug 16 2016 20:16
haha
Antonin Hackenberg
@TondaHack
Aug 16 2016 20:24
Hi @zenweasel, Yes, our use case is real. We are starting project where We will migrate very large dataset. Sorry for late response. I had vacation last days.
Owen Hoskins
@owenhoskins
Aug 16 2016 20:37
@jshimko: If I need imageMagick can I simply add it to the install-deps.sh docker file?
Aaron Judd
@aaronjudd
Aug 16 2016 20:39
@owenhoskins graphicsmagick already gets installed there, do you need imageMagick specifically?
(as for Reaction, both work)
Owen Hoskins
@owenhoskins
Aug 16 2016 20:40
Yeah toying around with Meteor-Files
Aaron Judd
@aaronjudd
Aug 16 2016 20:40
then, yup, that’s the place to put it
Owen Hoskins
@owenhoskins
Aug 16 2016 20:40
Cool, thanks. I am liking Meteor-Files so far, btw!
Aaron Judd
@aaronjudd
Aug 16 2016 20:41
we have an issue open for that, I think meteor-files is the favorite right now, unless we go for our own approach
so let us know how it goes...
Owen Hoskins
@owenhoskins
Aug 16 2016 20:41
will do
Jeremy Shimko
@jshimko
Aug 16 2016 20:41
@owenhoskins Yeah, you can add anything there, but then you’ll have a merge conflict the next time we update that script. So it’s not the ideal solution. Let me think about that for a bit.
Aaron Judd
@aaronjudd
Aug 16 2016 20:42
there is an npm install for imagemagick I think as well, might be able to move it into packages.json..
Jeremy Shimko
@jshimko
Aug 16 2016 20:43
nope, no npm stuff for that
Aaron Judd
@aaronjudd
Aug 16 2016 20:44
oh, yeah, looks like those are just wrappers
Jeremy Shimko
@jshimko
Aug 16 2016 20:44
I think there used to be something, but I vaguely recall removing it in favor of what’s there now.
but that was centuries ago… back in the spring
Owen Hoskins
@owenhoskins
Aug 16 2016 20:45
Cool, let me know.
I'll deal with another merge conflicts for now ;)
Jeremy Shimko
@jshimko
Aug 16 2016 20:51
@owenhoskins issue created to track it…
reactioncommerce/reaction#1301