These are chat archives for reactioncommerce/reaction

4th
Jul 2017
ereyes97
@ereyes97
Jul 04 2017 00:00
asd.png
How I can fix this?
Jeremy Shimko
@jshimko
Jul 04 2017 00:03
You’re running Reaction and Reaction’s database on the same two ports the GraphQL server is trying to use.
Also, I don’t know if you’re expecting them to automatically communicate with each other, but that’s not what that GraphQL project is intended to be used for. It’s just a starting point for building a GraphQL API in general. It has nothing to do with Reaction at this point.
So to answer your question, kill Reaction and restart the GraphQL Express server.
Jeremy Shimko
@jshimko
Jul 04 2017 00:09
However, unless you know how to write your own GraphQL schema, resolvers, etc. that project isn’t going to be very interesting to run. The only thing it has is a bare bones user schema, authentication, and a few resolvers for the users collection. It’s only intended to be a starting point that takes care of the initial base that all API servers need.
I also have a bunch of API updates that are almost ready to be merged. I’ve added a complete API for adding new Mongo collections, schemas, resolvers, etc. that vastly reduces how much manual work is required to extend the project from where it is now. I also switched to building the project with Webpack, so it has much more robust build tooling now.
I’ll likely merge all of that and push it out this week. The documentation is really the only part left to wrap up.
Jeremy Shimko
@jshimko
Jul 04 2017 00:20
Just to clarify a bit more, there’s absolutely nothing preventing you from setting the MONGO_URL of the GraphQL server to the same as Reaction and then using it to query from that database, but none of that will work until a complete set of GraphQL schemas and resolvers have been written to match the schemas of the current Reaction database. It is 100% possible and definitely part of the plan for the future, but that is definitely a non-trivial amount of work. You’re essentially rewriting the entire Reaction data layer with a totally different set of tools (other than the fact that it uses MongoDB and has a similar Mongo client API).
ereyes97
@ereyes97
Jul 04 2017 04:27
@jshimko Hi, Jeremy. Thanks for your detailed explanation. My mistake... I have another app running on port 3001
nmap localhost -p 3001 | grep -i tcp
3001/tcp open nessus
I guess I'll have to make the mutator or mutators in graphQL to insert new products into the reaction.
Jeremy Shimko
@jshimko
Jul 04 2017 04:29

you can start the GraphQL server on a different port with:

PORT=4000 yarn start

or do the same with Reaction instead

reaction -p 4000
both apps run the database on the next port higher (4001) in that example
ereyes97
@ereyes97
Jul 04 2017 05:35

@jshimko

eduardo@eduardo-Inspiron-3520:~/reaction-api-base$ PORT=4000 yarn start
yarn start v0.27.5
$ nodemon --watch src --ext js,graphql --exec 'npm run build && node dist/index.js'
[nodemon] 1.11.0
[nodemon] to restart at any time, enter rs
[nodemon] watching: /home/eduardo/reaction-api-base/src/*/
[nodemon] starting npm run build && node dist/index.js

reaction-api-base@0.2.0 build /home/eduardo/reaction-api-base
rimraf dist && babel src -d dist --copy-files

src/index.js -> dist/index.js
src/lib/api.js -> dist/lib/api.js
src/lib/index.js -> dist/lib/index.js
src/lib/mongo.js -> dist/lib/mongo.js
src/model/Users.js -> dist/model/Users.js
src/model/index.js -> dist/model/index.js
src/resolvers/Users.js -> dist/resolvers/Users.js
src/resolvers/index.js -> dist/resolvers/index.js
src/resolvers/scalars.js -> dist/resolvers/scalars.js
src/schema/index.js -> dist/schema/index.js
src/server/authenticate.js -> dist/server/authenticate.js
src/server/index.js -> dist/server/index.js
src/server/logger/index.js -> dist/server/logger/index.js
src/server/logger/loggly.js -> dist/server/logger/loggly.js
src/server/logger/main.js -> dist/server/logger/main.js
src/server/subscriptions.js -> dist/server/subscriptions.js

It stops
I also try npm

eduardo@eduardo-Inspiron-3520:~/reaction-api-base$ npm install
two warn at the end...

reaction-api-base@0.2.0 prepublish /home/eduardo/reaction-api-base
npm run build

reaction-api-base@0.2.0 build /home/eduardo/reaction-api-base
rimraf dist && babel src -d dist --copy-files

src/index.js -> dist/index.js
src/lib/api.js -> dist/lib/api.js
src/lib/index.js -> dist/lib/index.js
src/lib/mongo.js -> dist/lib/mongo.js
src/model/Users.js -> dist/model/Users.js
src/model/index.js -> dist/model/index.js
src/resolvers/Users.js -> dist/resolvers/Users.js
src/resolvers/index.js -> dist/resolvers/index.js
src/resolvers/scalars.js -> dist/resolvers/scalars.js
src/schema/index.js -> dist/schema/index.js
src/server/authenticate.js -> dist/server/authenticate.js
src/server/index.js -> dist/server/index.js
src/server/logger/index.js -> dist/server/logger/index.js
src/server/logger/loggly.js -> dist/server/logger/loggly.js
src/server/logger/main.js -> dist/server/logger/main.js
src/server/subscriptions.js -> dist/server/subscriptions.js
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.1.2

Mohit chattlani
@MohitChattlani
Jul 04 2017 05:37
my console.log() is not working in reaction
can any body help?
hrath2015
@hrath2015
Jul 04 2017 05:58
@MohitChattlani it works for me. Where r u checking u r logs?
Mohit chattlani
@MohitChattlani
Jul 04 2017 05:58
Exception in template helper: autoFormFieldIsInvalid@http://localhost:3000/packages/aldeed_autoform.js'
it shows this
I tried to modify the autoform
when building a custom payment provider
Mohit chattlani
@MohitChattlani
Jul 04 2017 06:12
I got error clear
but on form onsubmit it does not show any console logs
Mohit chattlani
@MohitChattlani
Jul 04 2017 06:17
its fine now
Kril Allen
@Huang9495
Jul 04 2017 06:21
@jshimko Hi ! Jeremy Shimko . Thank you for you help . I have succeed in installing the reaction on my computer . Today I reconfigure the environment of installation . And I input the command "sudo npm install -g reaction-cli " without root following your advises. Now , I can start the reaction fluently. Thank you for you help again.
Mohit chattlani
@MohitChattlani
Jul 04 2017 06:33
@hrath2015 how can we change the default currency?
Mohit chattlani
@MohitChattlani
Jul 04 2017 06:44
can we disable usd?
hrath2015
@hrath2015
Jul 04 2017 07:38
@MohitChattlani login as admin..change in localization and i18n
Mohit chattlani
@MohitChattlani
Jul 04 2017 08:15
If we have more than 1 settings in payment other than Api key how can we include them while making a payment
@hrath2015
hrath2015
@hrath2015
Jul 04 2017 08:20
not sure I understand the question
Mohit chattlani
@MohitChattlani
Jul 04 2017 08:21
Suppose i want to send redirect url and cancel url (compulsory) for payment provider along with api key how can i do that?
hrath2015
@hrath2015
Jul 04 2017 08:22
u can check paypal implementation. I guess it is there.
Vivek
@vivekmore89
Jul 04 2017 08:53
i wants add carousel on home screen
rijz
@rijz
Jul 04 2017 15:23
Is it possible to hire for developing our ecommerce website and deploy using reactioncommerce?
Daniel Honig
@dhonig
Jul 04 2017 16:34
@vivekmore89 I am working on the same this week
going to look to integrate a react component to do it
and integrate it with the control pane
Moncif Loukili
@monceeef
Jul 04 2017 20:09
how do you install reaction commerce on cpanel hosting ?
Brent Hoover
@zenweasel
Jul 04 2017 23:57
@monceeef You can install RC anywhere you can run a node application