These are chat archives for reactioncommerce/reaction

25th
Sep 2017
MichaelF77
@MichaelF77
Sep 25 2017 00:12
need a pointer - I am trying to spawn Reaction using docker on Ubuntu
I installed MongoDB on the serve ritself
my docker instance starts and immediately exits
I suspect it's because connection to the database can not be established, but can't be sure, is there any logs I cna look at?
Josh Cox
@joshuacox
Sep 25 2017 01:35
@MichaelF77 what does docker logs $dockerid produce? (give us a link to a gist or similar dont paste it all here)
btw you most likely dont need the local mongodb, you need one in a container to go with RC
I mean its possible to get the container one to use the local.... but.....
Josh Cox
@joshuacox
Sep 25 2017 01:53
shameless plug, I also have a dockerized reaction dev environment here. TLDR = try this oneliner docker run -p 3001:3000 joshuacox/reactiondev:demo and you will have a ReactionCommerce running on http://localhost:3001
Josh Cox
@joshuacox
Sep 25 2017 02:12
Quick shoutout to another meteor project, has anyone tried wekan? I recently submitted a rancher/community-catalog#626 which should make it more production ready.
MichaelF77
@MichaelF77
Sep 25 2017 06:10
@joshuacox I got it to work by specifying correct link, however I would like to use local mongodb because I want to use that DB to read orders and to maintain product catalog from my own backend
is that a good approach or should I use some kind of API? it's not clear/obvious form the docs
Another deployment question: my mail server is using Ubuntu's "fake" certificate and so Reaction can not connect to it, I suspect because it balks at certificate, any way to let it accept the certificate anyways?
shahid belal
@ConnectBelal_twitter
Sep 25 2017 06:15
how can i move site from development to production?
Josh Cox
@joshuacox
Sep 25 2017 06:25
@MichaelF77 @ConnectBelal_twitter you both ask the same question. The answer is a mongo cluster, though I am not sure how quickly you will come to that conclusion. I just recently was blessed with the experience of recovering a downed meteor instance. I woud hope everyone have an equally successful experience. This is certainly a subject worth documenting
MichaelF77
@MichaelF77
Sep 25 2017 06:26
@joshuacox That is precisely why I want to have separate mongo DB, I have competent DevOps who are well familiar with backing it up
then coming back online will be as easy as docker run...
Josh Cox
@joshuacox
Sep 25 2017 06:27
@MichaelF77 trust me RC was designed in that fashion, so no worries there
as in, my 'demo' might include an embedded mongo, but RC is designed to run from an external mongo
MichaelF77
@MichaelF77
Sep 25 2017 06:29
so my main question at this point is: If I manipulate Product catalog from outside, would it take effect in RC immedately ?
or should I be looking into some kind of API?
Josh Cox
@joshuacox
Sep 25 2017 06:32
you sound like you need to be editing products within reaction or mongo itself
MichaelF77
@MichaelF77
Sep 25 2017 06:33
I have my own inventory system
Josh Cox
@joshuacox
Sep 25 2017 06:33
there has been discussion of CSV importers etc
MichaelF77
@MichaelF77
Sep 25 2017 06:33
I want to dump it into RC
I have a lot of experience doing node.js development
and mongo
so I can either write it to mongo stright up or connect to some API
need advise on which way is prefferable
Josh Cox
@joshuacox
Sep 25 2017 06:33
but I think at the moment your best bet is to write some conversion of your inventory into the json that mongo expects
MichaelF77
@MichaelF77
Sep 25 2017 06:34
sure, I can do it, and just post directly to Product table?
Josh Cox
@joshuacox
Sep 25 2017 06:34
but I think many would like it if you made some sort of 'importer'
I agree it's too complicated for most to import products at the moment
it would be nice for to have some sort of CSV that excel etc reads, but then also imports nicely
shahid belal
@ConnectBelal_twitter
Sep 25 2017 06:48
How can i change site from development mode to production mode?
Ashish
@ashishgokhale
Sep 25 2017 07:00

Hi Guys, Please help, problem persist from last 5 days:

Now I am getting this error:

npm ERR! git submodule -q update --init --recursive: fatal: 'submodule' appears to be a git command, but we were not
npm ERR! git submodule -q update --init --recursive: able to execute it. Maybe git-submodule is broken?
npm ERR! git submodule -q update --init --recursive:
npm ERR! git clone --template=C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes_templates --mirror git@github.com:reactioncommerce/transliteration.git C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes\git-github-com-reactioncommerce-transliteration-git-8d5184dd: Cloning into bare repository 'C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes\git-github-com-reactioncommerce-transliteration-git-8d5184dd'...
npm ERR! git clone --template=C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes_templates --mirror git@github.com:reactioncommerce/transliteration.git C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes\git-github-com-reactioncommerce-transliteration-git-8d5184dd: Host key verification failed.
npm ERR! git clone --template=C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes_templates --mirror git@github.com:reactioncommerce/transliteration.git C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes\git-github-com-reactioncommerce-transliteration-git-8d5184dd: fatal: Could not read from remote repository.
npm ERR! git clone --template=C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes_templates --mirror git@github.com:reactioncommerce/transliteration.git C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes\git-github-com-reactioncommerce-transliteration-git-8d5184dd:
npm ERR! git clone --template=C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes_templates --mirror git@github.com:reactioncommerce/transliteration.git C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes\git-github-com-reactioncommerce-transliteration-git-8d5184dd: Please make sure you have the correct access rights
npm ERR! git clone --template=C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes_templates --mirror git@github.com:reactioncommerce/transliteration.git C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes\git-github-com-reactioncommerce-transliteration-git-8d5184dd: and the repository exists.
npm ERR! code 128
npm ERR! Command failed: git -c core.longpaths=true clone --template=C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes_templates --mirror git@github.com:reactioncommerce/transliteration.git C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes\git-github-com-reactioncommerce-transliteration-git-8d5184dd
npm ERR! Cloning into bare repository 'C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes\git-github-com-reactioncommerce-transliteration-git-8d5184dd'...
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.

IgorZh
@IgorZh
Sep 25 2017 07:03
looks like meteor does see you ssh key
what command throw this error?
Ashish
@ashishgokhale
Sep 25 2017 07:03
reaction init
IgorZh
@IgorZh
Sep 25 2017 07:03
are you workning on windows?
Ashish
@ashishgokhale
Sep 25 2017 07:03
yup
IgorZh
@IgorZh
Sep 25 2017 07:04
you shold add git/bin folder to PATH variable
I don't remember full path to git something like that c:\program files\git\bin
in bin folder should be sh.exe
Ashish
@ashishgokhale
Sep 25 2017 07:08

ok checking with your solution. Initially i had already in path variable "C:\Program Files\Git\cmd"

Now I have added this one "C:\Program Files\Git\bin"

Ashish
@ashishgokhale
Sep 25 2017 07:16

@IgorZh

Now it is giving this error

npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:200:12)
npm WARN addRemoteGit at emitTwo (events.js:87:13)
npm WARN addRemoteGit at ChildProcess.emit (events.js:172:7)
npm WARN addRemoteGit at maybeClose (internal/child_process.js:862:16)
npm WARN addRemoteGit at Process.ChildProcess._handle.onexit (internal/child_process.js:222:5)
npm WARN addRemoteGit reactioncommerce/transliteration resetting remote C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes\git-github-com-reactioncommerce-transliteration-git-5ec7c7d9 because of error: { [Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit ]
npm WARN addRemoteGit killed: false,
npm WARN addRemoteGit code: 1,
npm WARN addRemoteGit signal: null,
npm WARN addRemoteGit cmd: 'git -c core.longpaths=true config --get remote.origin.url' }
npm ERR! git clone --template=C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes_templates --mirror git://github.com/reactioncommerce/transliteration.git C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes\git-github-com-reactioncommerce-transliteration-git-5ec7c7d9: Cloning into bare repository 'C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes\git-github-com-reactioncommerce-transliteration-git-5ec7c7d9'...
npm ERR! git clone --template=C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes_templates --mirror git://github.com/reactioncommerce/transliteration.git C:\Users\PHP-6\AppData\Local.meteor\packages\meteor-tool\1.5.2\mt-os.windows.x86_32\dev_bundle.npm_git-remotes\git-github-com-reactioncommerce-transliteration-git-5ec7c7d9: fatal: unable to connect to github.com:

IgorZh
@IgorZh
Sep 25 2017 07:20
Looks mostly the same installer can't connect to github
have you got the ssh key which added to github?
Ashish
@ashishgokhale
Sep 25 2017 07:20
No
but I suppose key is required for private repo
IgorZh
@IgorZh
Sep 25 2017 07:23
Yes and and I not completely sure that it will help.
https://help.github.com/articles/connecting-to-github-with-ssh/ there is a tutorial it is very simple to generate and add key
you can try it doesn't get much time
10minutes i think
Ashish
@ashishgokhale
Sep 25 2017 07:24
sure
Mårten Pettersson
@mtnptrsn
Sep 25 2017 08:59
Hi. Just tried out reactioncommerce. Altough when calling "reaction" to start a development server it takes about 2 minutes (at least) for it to start. This is a fresh installation of reaction commerce. Is this standard or am I doing something wrong?
Akarshit Wal
@Akarshit
Sep 25 2017 09:05
@mtnptrsn Yes it takes around that much time to start.
Mårten Pettersson
@mtnptrsn
Sep 25 2017 09:27
Gotcha
shahid belal
@ConnectBelal_twitter
Sep 25 2017 09:30
How can i change our project to production mode?
Daniel Honig
@dhonig
Sep 25 2017 11:20
@ConnectBelal_twitter are you using the docker container to deploy / how are you deploying?
Daniel Honig
@dhonig
Sep 25 2017 11:28
@mtnptrsn the startup is only the first time. If you look in Mongo you will see alot of things being loaded. successive runs should be quick
Mårten Pettersson
@mtnptrsn
Sep 25 2017 11:49
@dhonig Oh okay. Thanks :)
Daniel Honig
@dhonig
Sep 25 2017 11:51
@mtnptrsn you can have a look at whats going on with mongo and it will help explain the startup delay
Hamed
@papmodern
Sep 25 2017 13:59
Guys is there any production level user of reaction right now?
Josh Cox
@joshuacox
Sep 25 2017 14:05
@papmodern https://artlimes.com/ <-- is an example
Hamed
@papmodern
Sep 25 2017 14:20
@joshuacox Thanks
Daniel Honig
@dhonig
Sep 25 2017 14:24
Was trying to find an integration test for a method hook. If anyone has an example let me know
Hamed
@papmodern
Sep 25 2017 14:31
I forgot my admin pass!!!. replaced generated bcrypt string in mongo but doesn't worked
Daniel Honig
@dhonig
Sep 25 2017 14:35
Just set your environmetn variables
and then do reaction reset
export REACTION_USER="admin"
export REACTION_AUTH="reaction123"
export REACTION_EMAIL="admin@example.com"
@papmodern you will lose any custom data but that shouldn't be an issue if your just getting started
Josh Cox
@joshuacox
Sep 25 2017 14:37
speaking of custom data, this link was brought up last week and has been changing how I think about it overall
@papmodern now would be a good time to familiarize yourself with mongodump and mongorestore. I think some documentation in this area might be useful, the meteor docs are sparse on this as well.
Daniel Honig
@dhonig
Sep 25 2017 14:45
There is also an extension available to import data from CSV
Josh Cox
@joshuacox
Sep 25 2017 14:46
when did that happen?
Hamed
@papmodern
Sep 25 2017 14:46
is any env file in project?
or I have to add them in os
Josh Cox
@joshuacox
Sep 25 2017 14:47
what OS?
Hamed
@papmodern
Sep 25 2017 14:48
windows 10
is there any fixtures about admin account
Josh Cox
@joshuacox
Sep 25 2017 14:50
what shell are you using? and I'm curious as to how you installed reaction npm etc
Daniel Honig
@dhonig
Sep 25 2017 14:50
you can add them to your environment
or add them to a file dev.settings.json
or settings.json for production
settings/dev.settings.json
Josh Cox
@joshuacox
Sep 25 2017 14:52
@papmodern you are doing pretty well btw, if you search through this channel for windows you'll see most have lots of pathing issues
Hamed
@papmodern
Sep 25 2017 14:52
@joshuacox windows powershell
@joshuacox I'm working well with windows and nodejs based projects. Even in native builds
Josh Cox
@joshuacox
Sep 25 2017 14:53
powershell environment vars docs
Hamed
@papmodern
Sep 25 2017 14:54
Just some limits in mobile builds
@dhonig :+1:
Daniel Honig
@dhonig
Sep 25 2017 15:09
Limits?
I'm getting so frustrated by all the windows queries I might just have to find some time to take on putting a guide together. The quick fix of installing linux doesn't seem very popular
Josh Cox
@joshuacox
Sep 25 2017 15:11
I encourage you to do it. I'm still wondering about the meteor windows installer and how well that works for folks
Daniel Honig
@dhonig
Sep 25 2017 15:12
I will do it once I get the current priority to an alpha ( later this week)
Setting up 'codacy' on the subscription billing now
Just to compare it to codeclimate
I got a B
Josh Cox
@joshuacox
Sep 25 2017 15:16
lmao, codacy is a new one on me, trying it out now
Hamed
@papmodern
Sep 25 2017 15:22
@joshuacox It's working fine man :D
after removing packages collection from mongodb, how can I force reaction to regenerate that without first long build?
Josh Cox
@joshuacox
Sep 25 2017 15:22
@papmodern so you installed from the meteor installer?
Daniel Honig
@dhonig
Sep 25 2017 15:23
start reaction
Hamed
@papmodern
Sep 25 2017 15:24
Yes. I installed it with installer. Then wrote some test projects with pure meteor and after that start working on reaction @joshuacox
@dhonig Reaction is running right now
Daniel Honig
@dhonig
Sep 25 2017 15:24
@papmodern if your new to meteor that sounds good.
its good to learn all the parts in isolation before working with reaction, though it isn't required
I just think its easier to get started that way
Hamed
@papmodern
Sep 25 2017 15:25
@dhonig Yes its just one week that I'm touching this platform
Daniel Honig
@dhonig
Sep 25 2017 15:25
great!
we've all been learning together so good to have you aboard
Josh Cox
@joshuacox
Sep 25 2017 15:26
the interesting thing to me is that the meteor installer got everything done and working, I would think it wouldn't be too hard to repackage that with reaction-cli included
Hamed
@papmodern
Sep 25 2017 15:26
I had to create the meanings and concepts from the first step :P @dhonig
@joshuacox hmmmm. nice idea
Daniel Honig
@dhonig
Sep 25 2017 15:27
Yeah its easy to feel like a varsity player in an NBA game the first few days.
but it only gets easier
image.png
Codacy gives reaction an A :
Josh Cox
@joshuacox
Sep 25 2017 15:28
I can definitely attest that going back to the meteor tutorials is the way to go, there's a ton of 'meteor' concepts that need to be understood before you start seeing a forest out of all these trees
@dhonig cheers!
Daniel Honig
@dhonig
Sep 25 2017 15:28
My bad marks are all for style issues
Hamed
@papmodern
Sep 25 2017 15:30
failed to activate my plugin without reaction reset :'(
Josh Cox
@joshuacox
Sep 25 2017 15:30
I think that is normal
Daniel Honig
@dhonig
Sep 25 2017 15:30
yes the first time
you will find your plugin registering in the Packages collection
Hamed
@papmodern
Sep 25 2017 15:31
so you are telling me that its not nececcery for every changes in my plugin?
Daniel Honig
@dhonig
Sep 25 2017 15:31
it is not required every time no
If you change the register.js
then you will need to use reset
for other changes no
Hamed
@papmodern
Sep 25 2017 15:32
sounds goooooood :)
Daniel Honig
@dhonig
Sep 25 2017 15:32
If you look at teh content of the pacakges
you will see it is derived from the register.js file
So it should make some more sense
Hamed
@papmodern
Sep 25 2017 15:33
yep you absolutely right
Daniel Honig
@dhonig
Sep 25 2017 16:18
anyone using a tool like Jake in their node projects? https://github.com/jakejs/jake
Josh Cox
@joshuacox
Sep 25 2017 16:19
no but it sounds right down my alley, I love Make and Rake
Daniel Honig
@dhonig
Sep 25 2017 16:19
yeah I think it could be applicable here to reaction
Josh Cox
@joshuacox
Sep 25 2017 16:21
lol so I already want to see a typescript and babel form of the Jakefile
Hamed
@papmodern
Sep 25 2017 19:01
I wish I could use kotlin in reaction
Daniel Honig
@dhonig
Sep 25 2017 19:02
@papmodern if you can get reaction running on Rhino you could :)
Hamed
@papmodern
Sep 25 2017 19:03
:worried:
Daniel Honig
@dhonig
Sep 25 2017 19:03
But I think once you get used to ES6 you won't miss kotlin as much
things are headed in a good direction and the difference between ruby/python is narrowing
for me I like the idea of writing the entire app in one language
Hamed
@papmodern
Sep 25 2017 19:10
I used ES6 and TS before. But kotlin is really awesome
I made a really strong connection with that :D
Hamed
@papmodern
Sep 25 2017 19:37
I'm so confused about workflow. What are they means with workflow?? I can't get it at all!
@papmodern You can compile Kotlin to JS, but after being burned with Coffeescript I'm going vanilla
Hamed
@papmodern
Sep 25 2017 19:42
Thanks for link, But I know that. The problem is using kotlin in framework and platforms like Meteor or react! @dhonig
Daniel Honig
@dhonig
Sep 25 2017 19:43
RIght. I'm not sure its a good fit honestly. It just adds cognitive load.
Hamed
@papmodern
Sep 25 2017 19:52
@dhonig did you get the idea of workflows?
Daniel Honig
@dhonig
Sep 25 2017 20:16
yes maybe I can help you with them tomorrow as I have to run now
José Luis Di Biase
@josx
Sep 25 2017 21:44
hi! i am trying to do a simple aboutus as in documentation and it worked , but i also need the header, any example with header and menu on it ?