How to write a blog like Medium in minutes with Ghost, Deploying in Heroku

Ghost is the world’s most popular open source headless Node.js CMS

Ghost is a simple blogging platform that has recently started to gain popularity. While the interface is fairly bare-bones, like Medium, Ghost provides an enjoyable writing experience thanks to a beautiful and powerful rich-text content editor, scheduling tools, and collaboration tools.

Like WordPress, Ghost is open-source meaning you can use it with any compatible web host and extend it for your unique needs.

Truly, this platform is best suited for developers (or developer implementers), as its headless content management system offers lots of flexibility.

Ghost also offers built-in support for email newsletters and SEO, in addition to the ability to create a membership business and accept payments. It can also integrate with hundreds of popular third-party tools for extended functionality.

Prerequisites

For this section it is necessary to keep in mind the following elements to create a blog with a Ghost.

  1. - Heroku account

Now that you have all the necessary requirements we can proceed to install Ghost on Heroku for this step i have created a repository where is all the necessary configuration to install Ghost in its latest version on Heroku.

Deploying in Heroku

All you have to do is use the following deploy button in Heroku and follow the necessary instructions.

Now you must choose a name for the app that you create in Heroku which will be the url that you will get for your blog.

App name

This configuration will use a MySql database with JawsDB and Mailgun service for handling emails within the blog.

Add-ons

And to finish with the configuration, we define the variable PUBLIC_URL, which will be the URL to access our blog. And then we click on the Deploy App button.

Config Vars

When the installation process is finished, it will show the following links to the dashboard and the app

App successfully deployed

For this example, the BackEnd and the FrontEnd will be available at the following URL’s:

Backend
FrontEnd

Configure BackEnd

When we access our blog for the first time, we will have to configure it in 3 simple steps:

  • Step 1: We click on the Create Your Account button to continue:
Step 1
  • Step 2: We will define the main data of the blog, in addition to the data of the main user to access the BackEnd of the blog:
Step 2
  • Step 3: If you want to collaborate with other users, now is the time to define them, or we can do it later.
Step 3

And ready! We can now start creating our own blog posts.

BackEnd: Posts

If you want to test the blog and add entries or edit the configuration, I leave you the credentials:

Access: https://victorvr-blog.herokuapp.com/ghost

User: valencia_vik@hotmail.com

Password: 0123456789

It’s very simple to create a blog with Ghost and Heroku, now that you have your blog working, it’s time to customize it.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store