Howtographql: react-apollo/1-getting-started deploy instructions too brief

Created on 4 Sep 2018  Â·  5Comments  Â·  Source: howtographql/howtographql

I got blocked by two issues in the deployment instructions:

  1. prisma deploy commences an interactive dialog with a lot of questions I didn't know the answer to
  2. "If you have Docker installed, you can also deploy locally" isn't exactly true. I set up a vanilla MySQL
    docker container and prisma couldn't connect to it, even though I was able to using the MySQL client.

I'm happy to submit a PR if I get past these issues, but thought I should create this issue in case I don't.

Most helpful comment

Personally, just one small problem: the instructions provided for deploying the Prisma server aren't enough.
Please, just add the instructions provided here so one can easily go through this part of the tutorial.
The tutorial is great, though.
Keep up the good work and heppy coding!

All 5 comments

I found the solution here. Submitted PR #778.

Personally, just one small problem: the instructions provided for deploying the Prisma server aren't enough.
Please, just add the instructions provided here so one can easily go through this part of the tutorial.
The tutorial is great, though.
Keep up the good work and heppy coding!

I had the same problem in react + apollo getting start . I spent 2 hours trying to create and connect to a local prisma database, but it's not as clear as I can do it, beyond If you have Docker installed, you can also deploy locally. For me, which do not have so much knowledge with Docker.

A +1 to this PR and to what @TorquatoNathan said, adding the following part of this page might be more helpful:

The prisma deploy command starts an interactive process:

First select the Demo server from the options provided. When the browser opens, register with Prisma Cloud and go back to your terminal.

Then you need to select the region for your demo server. Once that’s done, you can just hit enter twice to use the suggested values for service and stage.

Note: Prisma is open-source. It is based on Docker which means you can deploy it to any cloud provider of your choice (such as Digital Ocean, AWS, Google Cloud, …). If you don’t want to deal with DevOps and the manual configuration of Docker, you can also use Prisma Cloud to easily spin up a private cluster to which you can deploy your services. Watch this short video to learn more about how that works.

Once the command has finished running, the CLI outputs the endpoint for the Prisma GraphQL API. It will look somewhat similar to this: https://eu1.prisma.sh/public-graytracker-771/hackernews-node/dev.

It looks like already solved, closing it!

Was this page helpful?
0 / 5 - 0 ratings