These are chat archives for reactioncommerce/reaction

13th
Feb 2019
Gabriel Lumbi
@Lumbi
Feb 13 05:04 UTC
@loan-laux Hmm, how do you version control your plugins and for example, make sure you're using the same version consistently in your CI?
antecrypto
@antecrypto
Feb 13 06:40 UTC

I'm trying to get Reaction Commerce running on my Win 10 machine for the first time. I'm following Docs but super confused. I installed, Docker for Windows and it's Running, I installed Node.JS for Windows and it's running, I have GitHub Desktop & I have Kitematic installed. When I run docker-compose up -d, I get

Can't find a suitable configuration file in this directory or any
parent. Are you in the right directory?
Supported filenames: docker-compose.yml

I cannot find this file anywhere on my system. I know Docker-Compose is installed based on Docs " Docker Compose is included when installing Docker on Mac and Windows, but will need to be installed separately on Linux."

On Reaction Platform install, I type in git clone git@github.com:reactioncommerce/reaction-platform.git, and I get Permission denied (publickey). fatal: Could not read from remote repository. So I downloaded it on GitHub Desktop, but when I run the "make" command, in the reaction-platform directory, I get error "make : The term 'make' is not recognized as the name of a cmdlet, function, script file, or operable program."

I would appreciate any help.

Gabriel Lumbi
@Lumbi
Feb 13 06:43 UTC
@antecrypto the docker-compose.yml files are part of each subproject that get created when you run make on the platform repository (the one you cloned). I'm not familiar with Windows but looks like you'll need to install make for Windows.
Karbal
@karbal
Feb 13 09:46 UTC
Hello @loan-laux i try to create Cart using graphql solution i got this error ID namespace must be reaction/product
Error: ID namespace must be reaction/product", " at curry (imports/plugins/core/graphql/server/no-meteor/xforms/id.js:42:79)
  • I also use the interface and I debug the application before and after 'opaque' ids and I tried with these ids and it does not work
  • After Searching in the core framework i found that; framework create cart directly without passing by calling graphql mutation;
    " can you see please ?
Emrah
@EKIVANC
Feb 13 11:24 UTC

Hi Guys, I really stuck in installation,
I got "Error: self signed certificate in certificate chain" on sharp:

Any idea ?

info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.6.1/libvips-8.6.1-linux-x64.tar.gz
/opt/reaction/src/node_modules/sharp/install/libvips.js:52
throw err;
^

Error: self signed certificate in certificate chain

Loan Laux
@loan-laux
Feb 13 12:40 UTC
@Lumbi To version control your plugins, you'd use Git submodules, with one repo per plugin. Very clean and handy.
@EKIVANC Wouldn't you be on a public network with a captive portal by any chance?
@karbal What's the exact name of the GraphQL query you're trying to use?
@antecrypto Developing with Reaction on Windows isn't really recommended, but first of all I would install cygwin in order to have access to basic Linux commands. I believe make is shipped with it but am not entirely sure. Also, you can look at using the new Linux subsytem that was shipped with Windows 10, but I've never used it so I can't comment any further.
Gabriel Lumbi
@Lumbi
Feb 13 13:33 UTC

@Lumbi To version control your plugins, you'd use Git submodules, with one repo per plugin. Very clean and handy.

Ok cool

ADDZEP
@addzep
Feb 13 13:54 UTC

@Lumbi @antecrypto We can use "GnuWin32" to make use of "make" command on Windows 10. I am using it for development env.

I am also having issues just like #4928, #4975

Karbal
@karbal
Feb 13 15:47 UTC
Hi, @loan-laux; the query is createCart
mutation {
  createCart(
    input: {
      clientMutationId:"SQNVNWRJS6Qp5TLRKgoiUen63cwYHaucO7FDgYzy4ER",
      shopId: "cmVhY3Rpb24vc2hvcDpKOEJocTN1VHRkZ3daeDNyeg=="
      items: [
        {
          price: { amount: 19.99, currencyCode: "USD" }
          productConfiguration: {
            productId: "....wcEpFU2s="
            productVariantId: "...WYXJpYW50OjZxaXFQd0JrZUpkdGRRYzRH"
          }
          quantity: 3
          metafields: []
        }
      ]
    }
  )
}
antecrypto
@antecrypto
Feb 13 18:51 UTC
Any ideas?
Philipp Laurim
@EdgarNigel
Feb 13 18:56 UTC
Try "make init-reaction-next-starterkit"
Karbal
@karbal
Feb 13 19:38 UTC

hello @loan-laux i found the solution for that, to create cart you need to get productId not _id and for variantId Of variant>options>variantId
Get the list Products

{
  catalogItems(shopIds: ["...Z3daeDNyeg=="]) {
    edges {
      node {
        _id
        ... on CatalogItemProduct {
          product {
            _id
            productId
            variants {
              options {
                variantId
                title
              }
              variantId
            }
          }
        }
      }
    }
  }
}

Mutation Create Cart
```
mutation {
createCart(
input: {
shopId: "...RkZ3daeDNyeg=="
items: [
{
price: { amount: 19.99, currencyCode: "USD" }
productConfiguration: {
productId: "...BwSkVTaw=="
productVariantId: "...kZNdERUWA=="
}
quantity: 3
metafields: []
}
]
}
) {

antecrypto
@antecrypto
Feb 13 22:05 UTC

Is it normal to see this?

Starting reaction-next-starterkit_web_1 ... done

But not shown in docker ps command?

latesterror.png