Our GraphQL runs smoothly locally, but what if we want to share it with the world?
In order to make our graphQL api available to the public, we’ll need to deploy it on a production server. I chose Heroku for it’s simplicity.
Head over to Heroku, create a user if you haven’t, and create a new project. We don’t have to pay anything for our demo.
Head over to the deploy tab and sync the Heroku with Github. Easiest way is to deploy via our Github repository.
And finally, add the mlab Heroku add-on.
Next, let’s get our
pm2 ready for production. Since Heroku runs our scripts , we’ll need to add
pm2 to our