These are chat archives for reactioncommerce/reaction

18th
Apr 2017
xuanvinhvu
@xuanvinhvu
Apr 18 2017 00:47
reaction init creates a new folder and a reaction app. What if I already have the files. Can I just get reaction to just install npm packages and run?
I uploaded reaction source file to my remote server and now I’m trying to get it to run
Brent Hoover
@zenweasel
Apr 18 2017 00:50
reaction init essentially just does git clone + meteor npm install
so you should be able to just run meteor npm install from within your installation directory
Although, generally you should get eveeything running locally before trying to get into the specifics of running it remotely
xuanvinhvu
@xuanvinhvu
Apr 18 2017 00:51
thank you i’ll try that
reaction runs fine locally
but I’m trying not to run nodejs on my laptop
so I have a linux server that I upload files to via ssh
Brent Hoover
@zenweasel
Apr 18 2017 00:55
Ok, that’s just going to be a painful path to take unless you are going to use tmux or something
xuanvinhvu
@xuanvinhvu
Apr 18 2017 01:09
I’m using IDEA remote host it let me upload and sync to a remote host
Brent Hoover
@zenweasel
Apr 18 2017 01:09
Ok
xuanvinhvu
@xuanvinhvu
Apr 18 2017 01:10
I’m uploading .reaction and .meteor folder to the remote host as well. I tried not uploading it at first thinking I can generate it from just the source but it complains that since .meteor folder didnt exists the project isnt a meteor project. I guess that’s makes sense
Brent Hoover
@zenweasel
Apr 18 2017 01:21
Yes, it can’t start w/o those
Janus Reith
@janus-reith
Apr 18 2017 06:26
I wonder how to add my custom sections, like footer, to the product-details page.
I already created a custom product template, and chanched layoutFooter there.
This however had no effect, and the template is react, and doensn' t contain the core elements, like header and footer at all.
also tried to change the registry in my custom product template to use my CoreLayout* instead, no effect.
Where is the the template for the PDP located, with all the blaze sections included + the react component?
Slowly getting it together, but soem parts are still confusing
*some
Curran
@curranabell
Apr 18 2017 09:51

Hi I deployed my reactioncommerce shop with digital ocean and docker but my shop is not showing up properly. I followed this guide: https://gist.github.com/jshimko/745ca66748846551692e24c267a56060

After deploying the container I got the error

“docker: Error response from daemon: driver failed programming external connectivity on endpoint reaction (b708f485bce1d37366ea5787c6432e607bed6d5a8f30c0d5f413b06cede11a7e): Bind for 0.0.0.0:80 failed: port is already allocated.”

If you have any solutions that would be great. Thank You!

Here is what I deployed with docker:

docker-machine create \
--driver digitalocean \
--digitalocean-access-token <access-token> \
--digitalocean-size 512mb \
--digitalocean-region sfo1 \
reaction

eval "$(docker-machine env reaction)"

docker run -d -p 80:80 -p 443:443 \
--name nginx-proxy \
-v /opt/certs:/etc/nginx/certs:ro \
-v /etc/nginx/vhost.d \
-v /usr/share/nginx/html \
-v /var/run/docker.sock:/tmp/docker.sock:ro \
jwilder/nginx-proxy:latest

docker run -d \
--name lets-encrypt \
--volumes-from nginx-proxy \
-v /opt/certs:/etc/nginx/certs:rw \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
jrcs/letsencrypt-nginx-proxy-companion:latest

docker run -d \
--name reaction \
--restart always \
-p 80:3000 \
-e MONGO_URL="mongodb://SERVER-IP-ADDRESS“ \
-e ROOT_URL="https://naturalmedicinepharmacy.com" \
-e REACTION_EMAIL=“my-email” \
-e REACTION_USER=“username” \
-e REACTION_AUTH=“password” \
-e VIRTUAL_HOST="naturalmedicinepharmacy.com" \
-e VIRTUAL_PORT=3000 \
-e LETSENCRYPT_EMAIL=“my-email” \
-e LETSENCRYPT_HOST=“naturalmedicinepharmacy.com” \
reactioncommerce/reaction:latest

Nikolaj
@lopugit
Apr 18 2017 10:05
Can you only add products and have 1 product page? Where's the rest of the editable blocks and store themes and carts and checkout process and etc..?
Brent Hoover
@zenweasel
Apr 18 2017 10:12
pardon?
Nikolaj
@lopugit
Apr 18 2017 10:12
I just installed it for the first time and had a play. Is there a function to add new pages? Or just create products and edit those products?
Brent Hoover
@zenweasel
Apr 18 2017 10:16
No, there currently is no built-in CMS functionality
Nikolaj
@lopugit
Apr 18 2017 10:16
ahhhhh I thought that's what it was. Well then I might help you out with that
Wasn't it high on the agenda and easy to build if you've already got inline block editing?
You just have to code schemas for snippets
Brent Hoover
@zenweasel
Apr 18 2017 10:22
It just hasn’t been our prority, but it’s a top priority for second quarter
Nikolaj
@lopugit
Apr 18 2017 10:24
Mate, it's going to be the thing that sky rockets you above shopify, wordpress and square space. I've been building my own but just found you guys. v0.2.0 aye, you've done a lot for v0.2.0 All the technical stuff is done, now you have to do the stuff that actually gets seen. Exciting as
I haven't had a look at how you're storing product collections and collections in general, are the schemas in the docs or?
And any thought of a built in mongodb client like mongoclient except more inline
We use SimpleSchema
Alexander Ditzend
@aditzend
Apr 18 2017 11:55
Hi @zenweasel thank you for your answer, I can give you access to my deploy on Galaxy to see what is going on. I will try redeploying and see if it gets fixed.
Sophie He
@sophiehe
Apr 18 2017 16:03
In 2 days, we will be giving a rundown of our platform and answering your questions on air. Tune into our livestream this Thurs, 4/20, at 10am PST! RSVP: https://www.crowdcast.io/e/reaction-action-april
Nikolaj
@lopugit
Apr 18 2017 16:04
cool can't wait :fire:
daredevilDarmos
@daredevilDarmos
Apr 18 2017 17:06
Hi, I'm really new to this, but would love to learn more about reaction. I've set up a testing environment and am able to play around as an admin. However, I was curious what skills should I focus on learning if I would want to develop a full fledged eCommerce website with reaction?
Erik Kieckhafer
@kieckhafer
Apr 18 2017 17:40
Hey @daredevilDarmos, Javascript is really the core of our entire application, so as a high-level suggestion, sprucing up your JS skills is the way to go. Digging deeper, we’re in the midst of converting a lot of the code to React components, so focusing specifically on React is a good direction to go
daredevilDarmos
@daredevilDarmos
Apr 18 2017 17:51
@kieckhafer, Thank you! Say I wanted to add functionality to the admin side of react commerce. For example, if I wanted to have the ability to easily create static cms pages on my site. Would I be able to integrate a package found on npm to achieve this?
Erik Kieckhafer
@kieckhafer
Apr 18 2017 18:00
@daredevilDarmos Yes, adding a new NPM package is perfectly fine if something meets your needs. Content management is actually something we are focusing on this upcoming quarter (https://reactioncommerce.com/roadmap), so keep an eye out on our issues (https://github.com/reactioncommerce/reaction/issues) and feel free to make a PR if your work helps resolve any of them
daredevilDarmos
@daredevilDarmos
Apr 18 2017 19:25
@kieckhafer , thank you again, you have been very helpful!
Erik Kieckhafer
@kieckhafer
Apr 18 2017 20:14
:+1:
Janus Reith
@janus-reith
Apr 18 2017 21:27
I would really appreciate a documentation/tutorial on how to write a plugin to change layouts that is based on react. Some things are still confusing and I dont want to write unnessecary depreceated code
Erik Kieckhafer
@kieckhafer
Apr 18 2017 22:44
Hey @janus-reith, we are in the midst of converting all our componenets away from Blaze, and into React. Once we finish this, we’ll write documentation alongside it that will help you with what you are trying to achieve. You can follow along with the progress here: reactioncommerce/reaction#2040