These are chat archives for reactioncommerce/reaction

12th
May 2017
Timywitt
@Timywitt
May 12 2017 04:20 UTC
Hi guys, I am somehow stuck at the customizing templates tutorial. I created my plugin and did everything exactly as in the tutorial, but I always get "Page not found" error and no console errors. Have there been any recent changes to how plugins work thats not in the guide yet?
Brent Hoover
@zenweasel
May 12 2017 04:30 UTC
No, have you done a reaction reset?
Vigy
@vigyano
May 12 2017 05:39 UTC
@zenweasel any thoughts on my question above regarding adding and using helpers functions in extended templates?
Brent Hoover
@zenweasel
May 12 2017 05:41 UTC
yeah, have you looked at the documentation for the template-extension package? Let me get that URL
Vigy
@vigyano
May 12 2017 05:50 UTC
Yes, I looked at it but will check again.
JoshKneale
@JoshKneale
May 12 2017 11:30 UTC
Hi all, how does Reaction scale? would it be able to handle a company with 1000's of products?
hengsoheak
@hengsoheak
May 12 2017 14:28 UTC
Hi friends,
Could I install reaction in vagrant?
hengsoheak
@hengsoheak
May 12 2017 14:36 UTC
:worried:
hengsoheak
@hengsoheak
May 12 2017 15:50 UTC

reaction init

Cloning the master branch of Reaction from Github...
/bin/sh: 1: git: not found

Error: Unable to clone from Github. Exiting.

Spencer Norman
@spencern
May 12 2017 15:55 UTC
hi @hengsoheak you should install the requirements first https://docs.reactioncommerce.com/reaction-docs/master/requirements
hengsoheak
@hengsoheak
May 12 2017 16:34 UTC
Should I install as root use?
Spencer Norman
@spencern
May 12 2017 16:34 UTC
you shouldn’t need to and it’s generally not a good idea to use root
Baker
@masterde
May 12 2017 17:10 UTC
hi
anyone built a multi-tenant marketplace with Reaction ?
Vigy
@vigyano
May 12 2017 17:44 UTC
@zenweasel - I used .inheritsHelpersFrom to override helper function but the new functions in inherited template is not getting called? any idea?
Rahul Dutt Sharma
@rahul-dutt-sharma
May 12 2017 19:17 UTC
Hi guys, is it possible to add new payment gateways via developer apis or we need to create a plugin from scratch cloning how built ins work
Spencer Norman
@spencern
May 12 2017 19:19 UTC
You’ll need to create a plugin
Rahul Dutt Sharma
@rahul-dutt-sharma
May 12 2017 19:19 UTC
would that b via the generic plugin api or do we extend a base payment api?
Spencer Norman
@spencern
May 12 2017 19:20 UTC
We’ve got an “example payment provider” plugin that can be cloned for this purpose
Rahul Dutt Sharma
@rahul-dutt-sharma
May 12 2017 19:20 UTC
yea, thats what I was after :)
ty
Spencer Norman
@spencern
May 12 2017 19:20 UTC
:+1:
Rahul Dutt Sharma
@rahul-dutt-sharma
May 12 2017 19:20 UTC
I want to use this in India
Rahul Dutt Sharma
@rahul-dutt-sharma
May 12 2017 19:21 UTC
I can see how I would add taxation, payment gateway is smthing you just helped me with.
Spencer Norman
@spencern
May 12 2017 19:21 UTC
This should get you started on the right track
Rahul Dutt Sharma
@rahul-dutt-sharma
May 12 2017 19:21 UTC
I would also need to show the prices in rupees
Spencer Norman
@spencern
May 12 2017 19:22 UTC
You can reference Stripe and Paypal as well as we maintain those. We already support i18n such as showing price in rupees as well
Rahul Dutt Sharma
@rahul-dutt-sharma
May 12 2017 19:22 UTC
is that a direct schema change+theme change?
neat!
Spencer Norman
@spencern
May 12 2017 19:22 UTC
you shoudn’t need to change schemas or themes to support any of this
Rahul Dutt Sharma
@rahul-dutt-sharma
May 12 2017 19:22 UTC
paypal charges more than the local gateways here
so I would create a plugin
Spencer Norman
@spencern
May 12 2017 19:23 UTC
right
Rahul Dutt Sharma
@rahul-dutt-sharma
May 12 2017 19:23 UTC
cheers for having rupee supported in i8n
forgot that i8n suports that
i18n*
Spencer Norman
@spencern
May 12 2017 19:23 UTC
I’m guessing that you’ve seen our docs: but we have docs that should explain most of the process of creating a payment plugin
https://docs.reactioncommerce.com/reaction-docs/master/packages
Rahul Dutt Sharma
@rahul-dutt-sharma
May 12 2017 19:24 UTC
cheers mate, I would b back with more question.
Is there a specific area that you need help on?
I m good in vuejs
react
on server side I can do nodejs
I saw that your stack uses nodejs
but where ?
Spencer Norman
@spencern
May 12 2017 19:25 UTC
All of our server code is node / meteor
Rahul Dutt Sharma
@rahul-dutt-sharma
May 12 2017 19:25 UTC
umm. meteor uses node underneath? or you have different apis on em?
Spencer Norman
@spencern
May 12 2017 19:26 UTC
yeah
meteor builds to node
Rahul Dutt Sharma
@rahul-dutt-sharma
May 12 2017 19:26 UTC
are ur services microservices oriented?
kool
Spencer Norman
@spencern
May 12 2017 19:26 UTC
you should check out our docs, hopefully that will answer a lot of these questions
Rahul Dutt Sharma
@rahul-dutt-sharma
May 12 2017 19:29 UTC
okies, I m on that atm
have you heard of phoenix?
elixir-phoenix to b exact?
Spencer Norman
@spencern
May 12 2017 19:32 UTC
I have.
Rahul Dutt Sharma
@rahul-dutt-sharma
May 12 2017 19:33 UTC
kool.. I m currently on nodejs @work. I like it
but I find elixir(erlang) to b more appealing
What are your thoughts, is it worth investing into? I m having a fun thought about porting reaction to phoenix.
Spencer Norman
@spencern
May 12 2017 19:41 UTC
I haven’t built anything substantial in Erlang before, but it sounds like an enormous amount of work. If you want to build an ecommerce shop, I’d recommend just going with something that is supported and already exists (like Reaction)
Rahul Dutt Sharma
@rahul-dutt-sharma
May 12 2017 19:42 UTC
sure
my main objective is academic though
I still plan to make some contribution to reaction
it makes me happy
hengsoheak
@hengsoheak
May 12 2017 20:06 UTC
I' plan to us Luman for API and use Reaction commerce for front is it better?
invergo
@invergo
May 12 2017 20:51 UTC
I keep on receiving this error
-bash: reaction: command not found
hengsoheak
@hengsoheak
May 12 2017 20:52 UTC

=> Started proxy.
=> Meteor 1.4.4.2 is available. Update this project with 'meteor update'.
=> Started MongoDB.

cfs:gridfs: updating npm dependencies -- mongodb, gridfs-stream...

I'm still waiting very very long time don't know any status

Erik Kieckhafer
@kieckhafer
May 12 2017 20:54 UTC
@invergo have you installed reaction-cli?
invergo
@invergo
May 12 2017 20:54 UTC
of course
/Users/cameron/.npm-packages/lib
└── reaction-cli@0.8.2
Nick Baldwin
@nbaldwin
May 12 2017 20:55 UTC
@hengsoheak That takes a pretty long time
Erik Kieckhafer
@kieckhafer
May 12 2017 20:57 UTC
@invergo looks like that might have been a local install, not globally… did you do npm install -g reaction-cli
invergo
@invergo
May 12 2017 20:57 UTC
yes
/Users/cameron/.npm-packages/bin/reaction -> /Users/cameron/.npm-packages/lib/node_modules/reaction-cli/dist/main.js
/Users/cameron/.npm-packages/bin/rc -> /Users/cameron/.npm-packages/lib/node_modules/reaction-cli/dist/main.js
/Users/cameron/.npm-packages/lib
Erik Kieckhafer
@kieckhafer
May 12 2017 20:59 UTC
do you have a .npm folder inside your User directory, or only a .npm-packages?
check to see if it’s installed in /Users/cameron/.npm
invergo
@invergo
May 12 2017 21:02 UTC
no
Erik Kieckhafer
@kieckhafer
May 12 2017 21:03 UTC
but you do have the .npm folder? just reaction-cli istn’ in it?
if that’s the case, can you try npm install -g reaction-cli again?
invergo
@invergo
May 12 2017 21:04 UTC
I don't see an npm folder
is it hidden?
Erik Kieckhafer
@kieckhafer
May 12 2017 21:05 UTC
yes it is a hidden folder
invergo
@invergo
May 12 2017 21:05 UTC
usr/local/lib/node_modules/npm
Erik Kieckhafer
@kieckhafer
May 12 2017 21:10 UTC
OK, so you should see either/Users/cameron/.npm/reaction-cli or /usr/local/lib/node_modules/reaction-cli
if you don’t see the reaction-cli folder in one of those two locations, then it seems like it’s not globally installed
invergo
@invergo
May 12 2017 21:11 UTC
it is not
Nick Baldwin
@nbaldwin
May 12 2017 21:11 UTC
Is there an issue with 1.1.1 related to template files not adding their head tag to the page head when included?
invergo
@invergo
May 12 2017 21:11 UTC
the folder I have is node_modules
I tried a sudo command that didn't work
Nick Baldwin
@nbaldwin
May 12 2017 21:12 UTC
Google analytics is enabled, but the ga object isn't found on the window and it appears the GA tracking script didn't get imported from the head tag of reactionAnalytics.html
invergo
@invergo
May 12 2017 21:12 UTC
I re installed it
and cleared the cache
Erik Kieckhafer
@kieckhafer
May 12 2017 21:12 UTC
and it’s still not there?
hengsoheak
@hengsoheak
May 12 2017 21:12 UTC
We also don’t have to deal with the continuous translation of database structure to a code object. is it good way?
invergo
@invergo
May 12 2017 21:12 UTC
still not there
cd node_modules ls nothing there
Erik Kieckhafer
@kieckhafer
May 12 2017 21:14 UTC
nothing at all?
or just no reaction-cli?
invergo
@invergo
May 12 2017 21:14 UTC
nothing
Erik Kieckhafer
@kieckhafer
May 12 2017 21:14 UTC
so node_modules is empty? did you use sudo to install npm?
invergo
@invergo
May 12 2017 21:14 UTC
I installed it just in that folder
I have this NPM error npm WARN enoent ENOENT
I didn't
npm WARN cameron No description
npm WARN cameron No repository field.
npm WARN cameron No README data
npm WARN cameron No license field.
still command not found
Erik Kieckhafer
@kieckhafer
May 12 2017 21:16 UTC
do you develop other applications that use npm packages? are you having issues with them as well?
invergo
@invergo
May 12 2017 21:17 UTC
yes
they are fine

now I am getting these errors npm WARN checkPermissions Missing write access to /Users/cameron/.npm-packages/lib/node_modules/reaction-cli
/Users/cameron/.npm-packages/lib
└── reaction-cli@0.8.2

npm ERR! Darwin 16.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "reaction-cli"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! path /Users/cameron/.npm-packages/lib/node_modules/reaction-cli
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/Users/cameron/.npm-packages/lib/node_modules/reaction-cli'
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, access '/Users/cameron/.npm-packages/lib/node_modules/reaction-cli'
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/Users/cameron/.npm-packages/lib/node_modules/reaction-cli' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/cameron/npm-debug.log

Erik Kieckhafer
@kieckhafer
May 12 2017 21:22 UTC
based on the info we have, our thoughts are your npm installations are incorrect somewhere. whether it’s installing npm or reaction-cli as sudo, or not installing them as globals to your user, we can’t really be sure, but it is very odd that your users global node_modules folder is empty… at the very least, npm should be inside of there
so your last error message: npm ERR! Please try running this command again as root/Administrator.
that brings us back to thinking that npm was installed as root or sudo
you’re 100% sure you installed npm globally as your user, cameron?
invergo
@invergo
May 12 2017 21:26 UTC
I did that I'm going to un install and re install
and get back to you later
Erik Kieckhafer
@kieckhafer
May 12 2017 21:28 UTC
ok… take a look at this for some npm permissions info: https://docs.npmjs.com/getting-started/fixing-npm-permissions
hengsoheak
@hengsoheak
May 12 2017 21:42 UTC

21:41:16.391Z INFO Reaction: Load default data from /private/data/
21:41:20.796Z INFO Reaction: JobServer started
21:41:20.829Z WARN Reaction: Skipped loading settings from reaction.json.
21:41:20.829Z INFO Reaction: Loaded "/private/settings/reaction.json" for registry fixture import
21:41:46.939Z INFO Reaction: Using meteor --settings to create admin user
21:41:50.962Z WARN Reaction:


IMPORTANT! DEFAULT ADMIN INFO

EMAIL/LOGIN: zkyytzdy@localhost

PASSWORD: g1aLrjwI

21:41:50.972Z INFO Reaction: Reaction Version: 1.1.1
21:41:51.050Z INFO Reaction: Migrating from version 0 -> 4
21:41:51.051Z INFO Reaction: Running up() on version 1
21:41:51.093Z INFO Reaction: Running up() on version 2
21:41:51.116Z INFO Reaction: Running up() on version 3
21:41:51.144Z WARN Reaction: Skipped loading settings from reaction.json.
21:41:51.145Z INFO Reaction: Loaded "/private/settings/reaction.json" for registry fixture import
21:41:53.857Z INFO Reaction: Running up() on version 4
21:41:53.941Z INFO Reaction: Finished migrating.
21:41:54.154Z WARN Reaction: OpenExchangeRates API not configured. Not adding fetchRates job
21:41:54.170Z WARN Reaction: OpenExchangeRates API not configured. Not adding flushRates job
21:41:54.178Z WARN Reaction: No cart cleanup schedule
21:41:54.503Z INFO Reaction: Reaction initialization finished.
=> Started your app.

=> App running at: http://localhost:3000/
Great job now after re install ubuntu two times

But I would like to ask how to access mongodb and reaction from my local machine because I'm installing reaction on ubuntu16 on vagrant.
Spencer Norman
@spencern
May 12 2017 21:44 UTC
The best way to do that is to install reaction on your local machine
Otherwise, seems like a vaagrant specifc issue and I’d direct you towards their docs
hengsoheak
@hengsoheak
May 12 2017 21:45 UTC
My god I have many web services and another tool in local machine it is very slow right now
hengsoheak
@hengsoheak
May 12 2017 22:08 UTC
How about Reaction on docker?
invergo
@invergo
May 12 2017 23:08 UTC
it is in installed the permission are correct and it still does not work
I tried uninstalling node npm and meteor and home-brew and re installing all of them