These are chat archives for reactioncommerce/reaction

14th
Oct 2016
Ivanthadev
@ivanthemeh
Oct 14 2016 00:14 UTC
@jshimko Hey I tried to use the docker install on a fresh ubuntu image and got a Warning: unable to resolve "stage-2" in presets of /var/src/.babelrc about halfway through. Is there any way you can help me get the docker setup going for this?
Jeremy Shimko
@jshimko
Oct 14 2016 00:39 UTC
@ivanthemeh what steps did you take?
Ivanthadev
@ivanthemeh
Oct 14 2016 01:41 UTC
@jshimko Im a mess man , Ive been trying to get this working with https ALL day. Im going to bed. Im hoping to have some time to work on this tomorrow...my brain is fried right now >.<
Jeremy Shimko
@jshimko
Oct 14 2016 01:53 UTC
I recommend checking out that gist I posted earlier. It’s literally copy/paste. You don’t even need to know how it works.
auBusinessDaD
@auBusinessDaD
Oct 14 2016 05:27 UTC
thanks for the support @zenweasel, could please assist (re: getting it to work on my machine)
Brent Hoover
@zenweasel
Oct 14 2016 05:27 UTC
auBusinessDaD
@auBusinessDaD
Oct 14 2016 05:31 UTC
i did, but am just running through each now to confirm i did it properly
auBusinessDaD
@auBusinessDaD
Oct 14 2016 05:45 UTC
i have confirmed that each of them are working, but in the command prompt it still doesn't run the "reaction" command
firstly, it shows 'Warning: unable to resolve "stage-2" in presets of /C/Users/danie/reactionCommerce/.babelrc'
but continues 'Starting your app'
Brent Hoover
@zenweasel
Oct 14 2016 05:47 UTC
so when you say it doesn’t run the reaction command, you mean it runs with errors?
you cannot start Reaction without using the reaction command
auBusinessDaD
@auBusinessDaD
Oct 14 2016 05:47 UTC
'reaction' is not recognized as an internal or external command,
Brent Hoover
@zenweasel
Oct 14 2016 05:47 UTC
You cannot start it with just a meteor command
auBusinessDaD
@auBusinessDaD
Oct 14 2016 05:47 UTC
ahh
so how do I get the reaction command to work?
Brent Hoover
@zenweasel
Oct 14 2016 05:48 UTC
the reaction commands drives the plugin loader
have you installed the reaction-cli?
npm install -g reaction-cli
auBusinessDaD
@auBusinessDaD
Oct 14 2016 05:49 UTC
how do I install that?
thanks, running that now
reaction command is now working
Brent Hoover
@zenweasel
Oct 14 2016 05:51 UTC
awesome!
Just curious, where did you get the installation method you tried? That’s an old method that doesn’t tell you to install the CLI
auBusinessDaD
@auBusinessDaD
Oct 14 2016 05:52 UTC
still getting the stage 2 presets
Brent Hoover
@zenweasel
Oct 14 2016 05:53 UTC
Hmmm, I’m not really sure what that’s about
can you try running meteor npm install?
You might want to try just blowing away this version and start with the CLI from scratch
npm install -g reaction-cli
reaction init
cd reaction
reaction
auBusinessDaD
@auBusinessDaD
Oct 14 2016 05:55 UTC
is there a link to the instructions for that?
that’s the entire install process right there though
auBusinessDaD
@auBusinessDaD
Oct 14 2016 06:02 UTC
thanks, that is running now
fingers crossed it goes through
Brent Hoover
@zenweasel
Oct 14 2016 06:03 UTC
cool
auBusinessDaD
@auBusinessDaD
Oct 14 2016 06:03 UTC
installed, now running the reaction command on the new install
it is still coming up with the stage 2 though??
Warning: unable to resolve "stage-2" in presets of /C/Users/danie/reaction/.babelrc
Brent Hoover
@zenweasel
Oct 14 2016 06:07 UTC
Hmmm, that’s a new one for me
try running meteor npm install
also can you do reaction -v and give me what the results of that are?
auBusinessDaD
@auBusinessDaD
Oct 14 2016 06:10 UTC
meteor npm install came back with a bunch of ERR!
reaction -v came back with;
Node: 4.6.0
NPM: 2.15.9
Reaction: 0.16.1
Reaction CLI: 0.4.21
Brent Hoover
@zenweasel
Oct 14 2016 06:11 UTC
well if you are getting errors when running meteor npm install then that’s the issue there
what errors did you get?
auBusinessDaD
@auBusinessDaD
Oct 14 2016 06:13 UTC
meteor npm install works for some packages, but not all
meteor npm install --save nodemailer postcss postcss-js autoprefixer css-annotation fibers node-geocoder bunyan-format authorize-net braintree later paypal-rest-sdk stripe avalara-taxrates country-data
those are the only packages left that won't install
Brent Hoover
@zenweasel
Oct 14 2016 06:14 UTC
that’s quite a few. What is the error that you get?
auBusinessDaD
@auBusinessDaD
Oct 14 2016 06:15 UTC
what is the easiest way to send you an image (screen capture) of the errors?
Brent Hoover
@zenweasel
Oct 14 2016 06:15 UTC
you can just drag and drop an image into the chat window
auBusinessDaD
@auBusinessDaD
Oct 14 2016 06:16 UTC
Capture.PNG
Brent Hoover
@zenweasel
Oct 14 2016 06:16 UTC
reactioncommerce_reaction_-_Gitter.png
it looks like something is wrong with your git installation
auBusinessDaD
@auBusinessDaD
Oct 14 2016 06:17 UTC
meteor npm install --save react meteor-node-stubs transliteration i18next lodash accounting-js moment-timezone i18next-browser-languagedetector i18next-localstorage-cache i18next-sprintf-postprocessor jquery-i18next bunyan swiper react-bootstrap react-komposer react-simple-di nodemailer-wellknown classnames domkit sweetalert2 moment tether-drop money autonumeric griddle-react react-dom tether-tooltip react-autosuggest sortablejs bootstrap autosize
it ran that one without issue
Brent Hoover
@zenweasel
Oct 14 2016 06:17 UTC
you shouldn’t need to do any of that
just meteor npm install installs everything
all these errors are git related
auBusinessDaD
@auBusinessDaD
Oct 14 2016 06:18 UTC
git is installed
Brent Hoover
@zenweasel
Oct 14 2016 06:18 UTC
could you be running an old version of git?
yeah, it works because you cloned the repo with reaction init
auBusinessDaD
@auBusinessDaD
Oct 14 2016 06:19 UTC
Git-2.10.1-64-bit
Brent Hoover
@zenweasel
Oct 14 2016 06:19 UTC
but every error is a git failure of some sort
auBusinessDaD
@auBusinessDaD
Oct 14 2016 06:19 UTC
should i run something through the bash?
i have been running everything so far through CMD
Brent Hoover
@zenweasel
Oct 14 2016 06:20 UTC
that’s the same version I have here
are you running Windows 10 with bash support?
auBusinessDaD
@auBusinessDaD
Oct 14 2016 06:20 UTC
running windows 10 (not sure how to check bash support though)
Brent Hoover
@zenweasel
Oct 14 2016 06:21 UTC
bash support is an add-on
what bash were you talking about then?
auBusinessDaD
@auBusinessDaD
Oct 14 2016 06:22 UTC
git bash (desktop application that git installed)
Brent Hoover
@zenweasel
Oct 14 2016 06:22 UTC
oic
auBusinessDaD
@auBusinessDaD
Oct 14 2016 06:23 UTC
i have to get home for dinner - will have to try again on monday
thanks for your assistance, you have been great
Brent Hoover
@zenweasel
Oct 14 2016 06:24 UTC
k
auBusinessDaD
@auBusinessDaD
Oct 14 2016 06:24 UTC
i am sure we will get there
thanks
Brent Hoover
@zenweasel
Oct 14 2016 06:24 UTC
Ok, I will be here
auBusinessDaD
@auBusinessDaD
Oct 14 2016 14:34 UTC
it is almost 2AM here, so will just give a quick update for i hit the hay (go to sleep)
i made sure Bash support is running
this did not fix the issue - so i tried the meteor npm install -- save for each module the reaction command stated as missing
first i tried the meteor npm install - to no luck
then i tried all at one - also to no luck
then i tried one at a time - all of them worked except for one, authorize-net
no when i run the reaction command the issue list is a lot smaller
auBusinessDaD
@auBusinessDaD
Oct 14 2016 14:40 UTC
Capture.PNG
so we are getting somewhere, now just need these last little bits :)
Jeremy Shimko
@jshimko
Oct 14 2016 14:44 UTC

Can you please install this:

npm install -g windows-build-tools

and then start over with a fresh install of Reaction.

reaction init
gdumie01
@gdumie01
Oct 14 2016 15:23 UTC
hey
I am trying to get an installation of reaction commerce on a google cloud machine with node.js through bitnami (https://bitnami.com/stack/nodejs)
the package installation and everything goes ok
but when I run "reaction run"
I get stuck after the message "Started MongoDB"
Jeremy Shimko
@jshimko
Oct 14 2016 15:26 UTC
how long did you wait?
gdumie01
@gdumie01
Oct 14 2016 15:26 UTC
guess it has been like 30 mins now
tried 3 times before, waiting up to 1 hour
Jeremy Shimko
@jshimko
Oct 14 2016 15:28 UTC
ok, yeah definitely something wrong
no errors ever?
gdumie01
@gdumie01
Oct 14 2016 15:29 UTC
got this output once: "cfs:gridfs: updating npm dependencies -- mongodb, gridfs-stream..."
but then it got "stuck" again
Jeremy Shimko
@jshimko
Oct 14 2016 15:32 UTC
and you installed all of the required build tools?
gdumie01
@gdumie01
Oct 14 2016 15:34 UTC
I just started with a new node machine and ran the commands on the installation guide
I will run that debian command
just to make sure
Jeremy Shimko
@jshimko
Oct 14 2016 15:34 UTC
are you on Ubuntu or Debian?
is there any reason you aren’t just running it locally to try things out?
The setup you’re trying to run right now is a development setup that’s intended for local development work.
gdumie01
@gdumie01
Oct 14 2016 15:38 UTC
I am on a windows machine
and just didn't want to go with all the openssl and build tools for windows drag...
so I though to just try it out on a temporary remote instance
the remote host is Debian
Jeremy Shimko
@jshimko
Oct 14 2016 15:39 UTC
It has gotten a lot easier recently.
npm install -g windows-build-tools reaction-cli

reaction init
actually, need git as well
but that’s about it
I don’t think you’ll do any less work running it remotely, but if that’s what you prefer you’ll have to install all of the build tools for linux for that to work.
gdumie01
@gdumie01
Oct 14 2016 15:46 UTC
ok, new error: "FATAL ERROR: Committing semi space failed. Allocation failed - process out of memory
Aborted"
Jeremy Shimko
@jshimko
Oct 14 2016 15:46 UTC
how much RAM do you have?
gdumie01
@gdumie01
Oct 14 2016 15:46 UTC
what is the memory footprint to run an instance of reaction commerce?
Jeremy Shimko
@jshimko
Oct 14 2016 15:47 UTC
Well, you’re trying to build an instance of Reaction. That involves compiling binary modules and that’s CPU/RAM intensive.
A production deployment has different needs than a development setup
I think you’ll find development is way easier locally for a variety of reasons.
But if you want to skip the whole process and launch a production build, you can use the official Docker image. reactioncommerce/reaction:latest
You need at least 1gb of RAM to run Reaction, so it’s likely you’d need more than that to build it. If you’re using the cheapest option available on Bitnami, you likely don’t have enough resources.
gdumie01
@gdumie01
Oct 14 2016 15:51 UTC
ok
thanks for info
Jeremy Shimko
@jshimko
Oct 14 2016 15:52 UTC
sure
gdumie01
@gdumie01
Oct 14 2016 15:52 UTC
will give it a try locally and/or with a bigger machine
Jeremy Shimko
@jshimko
Oct 14 2016 15:52 UTC
if you’re not editing code and just want to launch a running instance, the Docker container may be your easiest/quickest option.

you can install Docker on your local machine…
https://www.docker.com/products/overview
then run…

# the latest development image
docker run -p 80:80 reactioncommerce/prequel:latest

and then just visit http://localhost/

no other dependencies required.
gdumie01
@gdumie01
Oct 14 2016 16:33 UTC
"Oops! You don't have Meteor installed yet!"
this on windows now
I just installed Meteor
and tried it again
still the same message
this was while running "reaction init"
Jeremy Shimko
@jshimko
Oct 14 2016 16:34 UTC
what happens when you run meteor?
gdumie01
@gdumie01
Oct 14 2016 16:36 UTC
not recognized
probably not in the environment variables
do you remember the command?
Jeremy Shimko
@jshimko
Oct 14 2016 16:39 UTC
meteor/meteor#4090
in short, restart.
As always, thank you Windows.
or maybe you just need to open a new cmd prompt to get the updated PATH
gdumie01
@gdumie01
Oct 14 2016 16:44 UTC
yup just did it
after the first npm install
I can run it without administrative priveligies right?
Jeremy Shimko
@jshimko
Oct 14 2016 16:46 UTC
I don’t know. I’m not a Windows guy. Sorry.
gdumie01
@gdumie01
Oct 14 2016 16:48 UTC
ok np
thanks
gdumie01
@gdumie01
Oct 14 2016 17:20 UTC
just tried it out with docker
great work!
just a question that I did not find in the docs
I see that you can define a "category-like" taxonomy for the products by using navigation tags
however, if I want to enrich my experience by showing illustrative images, texts and stuff for each "category"
the "tag" is simply not enough
do you have any solution for that that doesn't involve changing the schema?
3Maestros
@3Maestros
Oct 14 2016 18:48 UTC
What are the features in the upcoming release and what is the date?
Aaron Judd
@aaronjudd
Oct 14 2016 19:29 UTC
product revision control, order and account search, updated translations, next Tuesday
Spencer Norman
@spencern
Oct 14 2016 19:30 UTC
coupon codes get bumped?
Aaron Judd
@aaronjudd
Oct 14 2016 19:31 UTC
nope, still on schedule for 0.18 - so not bumped, but we’ve been giving 0.17 a little extra love
Spencer Norman
@spencern
Oct 14 2016 19:31 UTC
oh, nice. :heart:
Aaron Judd
@aaronjudd
Oct 14 2016 19:32 UTC
we’re about 20 days behind on 0.17, but should be worth it. I swear ;-)
Spencer Norman
@spencern
Oct 14 2016 19:32 UTC
:sparkles: :shipit: :wink:
Aaron Judd
@aaronjudd
Oct 14 2016 19:33 UTC
still planning on layout updates as well but that’s bumped for 0.18 for sure
Spencer Norman
@spencern
Oct 14 2016 19:33 UTC
yeah, we’ve kinda moved on from that for now
still will be a very welcome addition
tdmoneybanks
@tdmoneybanks
Oct 14 2016 19:34 UTC
@aaronjudd hi! while your here, any chance you can tell me whats up with the react/jsx code that is sometimes commented out or defined in a .js ext file
Aaron Judd
@aaronjudd
Oct 14 2016 19:34 UTC
oh and also full email templates for orders, etc coming in 0.17 (but editing them in the UI will be 0.18)
Spencer Norman
@spencern
Oct 14 2016 19:35 UTC
not undope. That will definitely make my life easier
tdmoneybanks
@tdmoneybanks
Oct 14 2016 19:36 UTC
i believe they can be found in the imports/core
just wanna know if react will be used anywhere in project
Aaron Judd
@aaronjudd
Oct 14 2016 19:36 UTC
@tdmoneybanks that’s a good question. @mikemurray is the man to answer that. I think much of that is probably cleaned up now in the development, or should be, I suspect those were from an earlier attempt at converting the PDP to react. the new PDP page is now mostly react components (in dev).
tdmoneybanks
@tdmoneybanks
Oct 14 2016 19:37 UTC
@aaronjudd ahh i see thank you for the clarity. Is the plan to move more pages to react components or to stay with blaze?
Aaron Judd
@aaronjudd
Oct 14 2016 19:37 UTC
most of the new components we’re building should be react.. but we’re still using blaze as the overall layout manager
tdmoneybanks
@tdmoneybanks
Oct 14 2016 19:37 UTC
sweet. gracias @aaronjudd
Aaron Judd
@aaronjudd
Oct 14 2016 19:38 UTC
once we’ve got everything into a component library (and we’re also working on docs, style guides, etc for this) we’ll start moving to a react layout, starting with the PDP
Spencer Norman
@spencern
Oct 14 2016 19:38 UTC
so stoked about this move to react
tdmoneybanks
@tdmoneybanks
Oct 14 2016 19:38 UTC
:heart:
@aaronjudd my team is currently working on converting reaction to a marketplace. We currently are planning on new shops being created through invite links sent out by the overall admin user. is this inline with the thinking on your end as well?
Aaron Judd
@aaronjudd
Oct 14 2016 19:42 UTC
yes, that should work.. we have a couple tickets on the permission handling as that’s become a little ragged.. but then all you have left is the UI for the “sub shop” owner.. n roles, admin = install / overall, owner = shop administrator.
tdmoneybanks
@tdmoneybanks
Oct 14 2016 19:44 UTC
yea we have added new roles necessary for multistores and have built the code where store owners can only create/edit their own sub-stores and products. We used shop-owner as the role for sub-shops but we can change it to whatever role defs work best for you guys. the creation of the ui for overall admin to manage/invite new vendors is our main last hurdle
Aaron Judd
@aaronjudd
Oct 14 2016 19:45 UTC
yup, that’s the main remaining task for marketplace, we’ve been putting it off until after 0.19/0.20 -> that’s our target for a stable single tenant core...
TBomberman
@TBomberman
Oct 14 2016 23:03 UTC
Btw, I think this is awesome
thank you
question: is there a demo of the features out there?