These are chat archives for reactioncommerce/reaction

5th
Sep 2017
Adam Wade
@adamwade2384
Sep 05 2017 01:14
Hey everyone, I'm looking into trying reaction commerce. I need to build a monthly subscription website, does anyone have any experience doing this? If so, could you give me a quick run down of how it went?
Oluwatobi Omotayo
@tobitech
Sep 05 2017 02:16
@joshuacox Please how do I add my new plugin to version control?
Oluwatobi Omotayo
@tobitech
Sep 05 2017 02:34
Guys, I would also like to ask, how do I know the classes given to the UI elements when customising via a theme. The example only shows a @navbar-default-bg
Oluwatobi Omotayo
@tobitech
Sep 05 2017 02:40
I mean the variables, how do I know their names to know which to target to customise
Josh Cox
@joshuacox
Sep 05 2017 03:36
@tobitech @jshimko 's git submodule add repoUrl ./imports/plugins/custom/myplugin<-- is probably your best bet, on the variables I tend to right click and inspect element, and sometimes just right click and copy the rule from the CSS viewer. then paste them into my less file directly and edit them there
.btn-default:hover { color: @color-hover; background-color: @bg-hover; border-color: @border-hover; }
^for example there is the .btn-default:hover where you'll need to define @color-hover
@bg-hover: #f9f; @color-hover: blue; @border-hover: blue; <-- something like that
Adam Wade
@adamwade2384
Sep 05 2017 05:22
Hi there, I'm looking to use reaction for a subscription based ecommerce site. Does anyone have any experience with this?
shahid belal
@ConnectBelal_twitter
Sep 05 2017 09:08
how Reaction manages SKUs for product variants? Please suggest me
Brent Hoover
@zenweasel
Sep 05 2017 09:17
when you say “manages SKU’s” what do you mean?
shahid belal
@ConnectBelal_twitter
Sep 05 2017 09:56
I have to manage SKU for every single product
Brent Hoover
@zenweasel
Sep 05 2017 10:04
I’m still not understanding what you say mean when you say “manage SKU”. What about the SKU are you trying to manage?
What is the management that you want to do or feel you need to do?
shahid belal
@ConnectBelal_twitter
Sep 05 2017 10:34
I mean to say product model number
Brent Hoover
@zenweasel
Sep 05 2017 10:44
I know what a SKU is, I don’t know what you mean when you say “manage” it
shahid belal
@ConnectBelal_twitter
Sep 05 2017 10:48

Please help me for how Reaction manages SKUs for product variants.

Ex., like map, each stand-alone variant has its own SKU like Tyvek or raster. These stand-alone variant SKU’s are always the same and will be used across multiple maps as an add-on.

Some examples for a buyer who selects paper and options may help here:

Quadrangle Map 1 = SKU AAA
Quadrangle Map 2 = SKU AAB
Tyvek = SKU XX
Poly = SKU YY

    Quadrangle Map 1 with Std Paper:           SKU AAA
    Quadrangle Map 1 with Tyvek Paper:      SKU AAA + SKU XX
    Quadrangle Map 1 with Poly:                      SKU AAA + SKU YY

    Quadrangle Map 2 with Std Paper:           SKU AAB
    Quadrangle Map 2 with Tyvek Paper:      SKU AAB + SKU XX
    Quadrangle Map 2 with Poly:                      SKU AAB + SKU YY
shahid belal
@ConnectBelal_twitter
Sep 05 2017 11:11
How can I deploy reaction commerce from local server? Please advise me in detail
shahid belal
@ConnectBelal_twitter
Sep 05 2017 11:34
I am using this document but unable to deploy.
can u please advise me in detail i have to deply on this devng.geospatial.com
Jeremy Shimko
@jshimko
Sep 05 2017 11:37
No, I can’t. You could hire someone though. There is a jobs category on the forum that you could post in.
https://forums.reactioncommerce.com/c/jobs
shahid belal
@ConnectBelal_twitter
Sep 05 2017 11:59
I am using this command to create image (reaction build mycustom)
but it don't create image of reaction commerce
Jeremy Shimko
@jshimko
Sep 05 2017 12:00
what does it do?
shahid belal
@ConnectBelal_twitter
Sep 05 2017 12:02
It display error like docker image not created
Jeremy Shimko
@jshimko
Sep 05 2017 12:03
I’ll need the actual error if you want help with it. Every error ends with that same message, so you need to share what happens before that
shahid belal
@ConnectBelal_twitter
Sep 05 2017 12:04
ok Please give me some time I tell u actual error
Jeremy Shimko
@jshimko
Sep 05 2017 12:14
You have Docker installed, right?
shahid belal
@ConnectBelal_twitter
Sep 05 2017 12:20
I have installed docker toolbox
docker_toolbox.png
Jeremy Shimko
@jshimko
Sep 05 2017 12:23
you see the error there?
you’re not in a reaction directory
shahid belal
@ConnectBelal_twitter
Sep 05 2017 12:26
image.png
Jeremy Shimko
@jshimko
Sep 05 2017 12:27
If you haven't customized anything, you don’t need to create a custom build. You can use the official release from reactioncommerce/reaction:latest
shahid belal
@ConnectBelal_twitter
Sep 05 2017 12:27
I am using
docker run -d \
-p 80:3000 \
-e ROOT_URL="http://<your app url>" \
-e MONGO_URL="mongodb://<your mongo url>" \
-e REACTION_EMAIL="youradmin@yourdomain.com" \
-e REACTION_USER="admin-username" \
-e REACTION_AUTH="admin-password" \
reactioncommerce/reaction:latest
but my application is customized and i have to deploy on other server
Jeremy Shimko
@jshimko
Sep 05 2017 12:30
The instructions in the custom build section are what you want then. Build the custom image and push it to Docker Hub. Then from your server, pull the image and run it.
shahid belal
@ConnectBelal_twitter
Sep 05 2017 12:33
my problem is that custom image is not creating
Jeremy Shimko
@jshimko
Sep 05 2017 12:33
ok, still haven’t seen an error
Josh Cox
@joshuacox
Sep 05 2017 13:06
@adamwade2384 you might want to reply in this post and perhaps we can get something going https://forums.reactioncommerce.com/t/subscription-products/429
Josh Cox
@joshuacox
Sep 05 2017 13:33

@ConnectBelal_twitter it's impossible for us to determine what might be wrong without seeing the actual error output. But I have seen reaction, meteor, and npm run funny on windows. You might consider running your entire dev environment inside a stable VM like ubuntu LTS. This eliminates much of the problems windows presents. I just added a 'build' section to my reaction dev image, if you are inside the VM, you should be able to ./build mycustom, or manually:

docker run --name reactiondev \
-v $(REACTION_ROOT):/home/node/reaction \
--privileged \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(shell which docker):/bin/docker \
joshuacox/reactiondev:latest
reaction build mycustom

notice this shares the docker socket internally and builds using the exterior docker. I welcome feedback, issues, etc here

Josh Cox
@joshuacox
Sep 05 2017 14:25
Are there any tricks to using FROM reactioncommerce/base:devbuild? I am getting errors when trying to use it in my image. FROM reactioncommerce/base has similar results
Jeremy Shimko
@jshimko
Sep 05 2017 14:28
never seen the first error, the second error is Meteor’s CDN failing
Any particular reason you’re using the devbuild in an automated build? That’s really only for faster local builds. Automation should always use the regular build.
Josh Cox
@joshuacox
Sep 05 2017 14:32
No not in particular, other than to follow reaction itself more closely, the other branches are working great. If anything, I'm just trying to familiarize myself with all of reaction before I write my plugin. Kind of trying to make sure I see the forest through the trees.
Jeremy Shimko
@jshimko
Sep 05 2017 14:37
Ok. I can respect that.
Well, the only difference with the devbuild tag on the base image is it caches each build step in separate layers so you only need to build the app after the initial build. That means all OS deps, Meteor, Node, etc. don’t have to be reinstalled every time. That also means the final image is gigantic. Like 4-5x the size. So it’s really just for convenience when building repeatedly in development.
As for your “dev environment in an image” use case, that’s something else entirely. Without digging into how your image works, I don’t have a quick answer for that. If it’s just a dev env, why would it be trying to build reaction too?
Josh Cox
@joshuacox
Sep 05 2017 14:42
ya I've notice my build images are huge the alpine is decently slim but broken -> joshuacox/reactiondev#1. The build is for cases where my local npm/meteor/reaction is borked (it was arch linux and it's bleeding edge that 'inspired' this) and I want to build while still editing locally (where reaction is broken)
Jeremy Shimko
@jshimko
Sep 05 2017 14:44
yeah, running the Meteor tool on Alpine is a no-go. Been down that road for the exact same reason.
meteor/meteor#4573
So their stance is essentially “we don’t need it, so you’re out of luck. add it to our magical feature wish list so it can be ignored forever"
Josh Cox
@joshuacox
Sep 05 2017 14:45
I probably should have asked you here about it earlier, I was banging my head on that one for a bit last week
Jeremy Shimko
@jshimko
Sep 05 2017 14:47
However, you can do what one of them suggested there… build the app in a supported OS and pass the bundle into an Alpine image to run it. But that’s a lot of complexity just to get a smaller image. Totally doable, but not exactly user friendly. Which is precisely why I walked away.
Josh Cox
@joshuacox
Sep 05 2017 14:48
interesting.... I might leave that exercise for another time, but I like it, mount in a directory and output a bundle and use it in an alpine container
Jeremy Shimko
@jshimko
Sep 05 2017 14:48
yep
probably not terrible, but I could totally see it somehow taking 3 days to get right.
hard to justify that for nothing more than a smaller image.
but some day I’ll be bored on a Sunday and start chipping away at it
Josh Cox
@joshuacox
Sep 05 2017 14:53
especially when the main image is already pretty small, and definitely not worth it in my exercise of dockerize the dev environment. For entertainment purposes only let me submit Jess Fraz's post which takes the 'dockerize all the things' mantra to a whole new level
Jeremy Shimko
@jshimko
Sep 05 2017 14:55
Oh nerds.
Josh Cox
@joshuacox
Sep 05 2017 14:57
ya coreOS with video drivers compiled in so you can use it as a desktop <-- totally nutz
Sophie He
@sophiehe
Sep 05 2017 18:42
Got a technical question for the dev team? Our Community Call is tomorrow at 7am PT/10 am ET! Agenda + tune-in link here: http://getrxn.io/2wuBVqu
Loan Laux
@loanlaux
Sep 05 2017 18:42
Looking forward to this 🙌🏻
Hassan Arshad
@hassanairion12
Sep 05 2017 22:24
Hey Guys,
I am new here, sorry for a trivial question but I am trying to access the following page
https://docs.reactioncommerce.com/developer/tutorial/customization.md but it is not loading at all, whats wrong with it?