Create-React-App + Apollo + Express boilerplate ready to be deployed to Heroku

Hi everybody,

Just wanted to share a boilerplate I’ve been working on. The idea is to have simple Create-React-App + Apollo + Express app that is ready to be deployed to Heroku (Heroku provides free hosting, that’s why I chose this service).

It took me quite a while to figure out how to put all the pieces together, so I thought it could be helpful for someone trying to get started with Apollo.

Here is the repo of the project:

And here is the app:

I suggest reading the following articles (thanks!) in order to understand the boilerplate:


Thanks for this! I have been trying to achieve this setup. You saved me time.

1 Like

Glad it helped, @martineboh :slight_smile:


Just for those of you interested in the boilerplate, I’ve just created a new branch called ‘mongo’ that extends the code in the ‘master’ branch by adding MongoDB support using mongoose for easier collection manipulation.

Here is the link of the new branch:

Below is the link of the app deployed to heroku. The app basically displays a list of ‘authors’ stored in a MongoDB instance hosted in mLab. When the user selects one of the authors (using the input box for author’s name or surname) the list of posts associated to said author is be displayed:

Next step is to add authentication using passport.js