These are chat archives for reactioncommerce/reaction

11th
Jul 2016
Brent Hoover
@zenweasel
Jul 11 2016 03:17
Here is the WIP version of the Customization Guide for v14. https://hackmd.io/CYUxA4CNgVgNgLQE4DsBjATAgLAZgAyJJwpIIBmAhrnDPgIzhyT7ZA==
The BeesKnees repo is updated as well, with the new version on the development branch
ishaq-bhojani
@ishaq-bhojani
Jul 11 2016 06:59
Hi there
Brent Hoover
@zenweasel
Jul 11 2016 07:00
Hello
ishaq-bhojani
@ishaq-bhojani
Jul 11 2016 07:00
I'm using reaction Commerce on windows
just getting started
I'm unable to run the project
installed all requirements
Brent Hoover
@zenweasel
Jul 11 2016 07:01
What’s the error you are getting?
ishaq-bhojani
@ishaq-bhojani
Jul 11 2016 07:01
but at the end when i type reaction command on command prompt
it says "reaction is not a command"
Brent Hoover
@zenweasel
Jul 11 2016 07:02
Something about your environment is not set up properly
Can you do meteor run?
ishaq-bhojani
@ishaq-bhojani
Jul 11 2016 07:02
ok, how can i fix it
yes "meteor run" is working
it's downloading meteor-tool
Brent Hoover
@zenweasel
Jul 11 2016 07:04
Unfortunately I don’t know enough about Windows to be able to troubleshoot your environment
But the reaction command is just a wrapper around meteor command so you should be able to get started with that
ishaq-bhojani
@ishaq-bhojani
Jul 11 2016 07:05
okay, thanks.
Brent Hoover
@zenweasel
Jul 11 2016 07:06
Maybe somebody else in the room who uses windows can give you a hand
ishaq-bhojani
@ishaq-bhojani
Jul 11 2016 07:06
hmm..
hrath2015
@hrath2015
Jul 11 2016 07:07
@ishaq-bhojani let it run. will take a while
ishaq-bhojani
@ishaq-bhojani
Jul 11 2016 07:07
@hrath2015 okay
Brent Hoover
@zenweasel
Jul 11 2016 07:07
@hrath2015 Do you know how to fix the issue he is getting with not being able to run the reaction command? Seems like Windows users are getting this a lot.
hrath2015
@hrath2015
Jul 11 2016 07:09
@zenweasel I use meteor --settings to run on windows. So can not provide exact steps .
Brent Hoover
@zenweasel
Jul 11 2016 07:10
@hrath2015 kk
hrath2015
@hrath2015
Jul 11 2016 07:11
however I read in this room sometime if u use git shell/git bash on windows then u can run reaction command as it is
ishaq-bhojani
@ishaq-bhojani
Jul 11 2016 07:11
@hrath2015 i tried on git bash but got same error
Brent Hoover
@zenweasel
Jul 11 2016 07:14
Well, if you just cat that reaction file you can see what every reaction command corresponds to
But pretty much meteor run —settings your_settings_file gets you what you need to get going
ishaq-bhojani
@ishaq-bhojani
Jul 11 2016 07:15

!/bin/bash

#

Reaction Commerce CLI helpers

#
set -u
set -e

by default runs settings/dev.settings.json

customize by creating settings/settings.json

if [[ "$@" == "reset" ]]; then
bin/reset
elif [[ "$@" == "pull" ]]; then
git pull && meteor npm install && bin/clone-packages.sh
elif [[ "$@" == "install" ]]; then

copy clone-packages.sh so that any directory

can be specified for use in PACKAGE_DIRS config.

cp bin/clone-packages.sh /usr/local/bin/

copy reaction so that you don't need ./

cp reaction /usr/local/bin/reaction && chmod + /usr/local/bin/reaction
bin/install
elif [[ "$@" == "test" ]]; then
VELOCITY_TEST_PACKAGES=1 meteor test-packages --port 3006 --driver-package velocity:html-reporter --velocity
else
bin/run "$@"
fi
exit

Brent Hoover
@zenweasel
Jul 11 2016 07:15
Yeah, not sure if you needed to paste it in here tho :)
ishaq-bhojani
@ishaq-bhojani
Jul 11 2016 07:16
@zenweasel :D
hrath2015
@hrath2015
Jul 11 2016 07:40
@ishaq-bhojani I tried it now and ./reaction works for me from installation directory
Himanshu Aggarwal
@haggarwal90
Jul 11 2016 09:41
how to define new route ?like i have one new template aboutus and i provided one href in the footer for "about us"
Brent Hoover
@zenweasel
Jul 11 2016 09:42
You need to add a registry entry. It’s covered in the Customization Guide. Have you seen that?
It covers adding an “About Us” section exactly.
Himanshu Aggarwal
@haggarwal90
Jul 11 2016 09:43
ohh nice. i m reading it
Brent Hoover
@zenweasel
Jul 11 2016 09:44
I’ve been rewriting it for 14 and one thing I noticed I forgot is you need to add your new route to the defaultRole and defaultVisitor role permission groups in your Shops.json
You can then use the pathFor helper for the link
hrath2015
@hrath2015
Jul 11 2016 09:49
@haggarwal90 I believe u used material design with RC. will it possible to look at it on any deployed server.
Himanshu Aggarwal
@haggarwal90
Jul 11 2016 09:51
yes i m using bootstrap material design with RC. lets chat in private @hrath2015
Brent Hoover
@zenweasel
Jul 11 2016 09:52
Ahhh
I wanted to see RC in Material Design ;)
hrath2015
@hrath2015
Jul 11 2016 09:52
Me too
Himanshu Aggarwal
@haggarwal90
Jul 11 2016 09:53
it is for our customer so i can't share the url in public . hope u understand :)
Brent Hoover
@zenweasel
Jul 11 2016 09:53
Yes, totally
ishaq-bhojani
@ishaq-bhojani
Jul 11 2016 10:16
How can I find out the mongoDB port ReactionCommerce is connected to.
I'm trying to connect to MongoDB using RoboMongo
Yagnatech
@Yagnatech
Jul 11 2016 10:17
meteor mongo
Brent Hoover
@zenweasel
Jul 11 2016 10:17
By default it's on 3001
Always the meteor port +1
ishaq-bhojani
@ishaq-bhojani
Jul 11 2016 10:19
Thanks @zenweasel @Yagnatech - I'm now connected
Himanshu Aggarwal
@haggarwal90
Jul 11 2016 10:25
@zenweasel i m getting "You don't have permission to view this content" page on hitting http://localhost:4005/reaction/about
how can i provided the permission?
Brent Hoover
@zenweasel
Jul 11 2016 10:27
Edit the defaultRoles and default visitor roles
defaultVisitorRole arrays in Shops.json
And reset
Himanshu Aggarwal
@haggarwal90
Jul 11 2016 10:46
may be i added register.js in the wrong directory. i added register.js in the reaction/server/register.js
is this correct?
Brent Hoover
@zenweasel
Jul 11 2016 10:51
You should add it in the server directory within your package
Himanshu Aggarwal
@haggarwal90
Jul 11 2016 10:52
my custom theme package?
Brent Hoover
@zenweasel
Jul 11 2016 10:53
if it’s a meteor package, yes. And add it to your package.js
what’s the issue you are running into, still the permissions error?
Himanshu Aggarwal
@haggarwal90
Jul 11 2016 10:54
yes. i think issue is with my register.js itself
i created it at wrong location
Brent Hoover
@zenweasel
Jul 11 2016 10:54
why? If the route is working the registry entry was written
ok
Himanshu Aggarwal
@haggarwal90
Jul 11 2016 13:05
This message was deleted
hrath2015
@hrath2015
Jul 11 2016 17:38
@jshimko @aaronjudd getting error can not find module jquery-ui/autocomplete while running on browser. any suggestions?
Jeremy Shimko
@jshimko
Jul 11 2016 17:39
Latest version of jquery-ui seems to have changed their export structure. Fix coming shortly on development branch.
hrath2015
@hrath2015
Jul 11 2016 17:40
ok thanks
Jeremy Shimko
@jshimko
Jul 11 2016 17:42
You can roll it back to 1.10.5 for a quick fix
hrath2015
@hrath2015
Jul 11 2016 17:42
in process of doing it. Thanks