There are many ways to point a domain name to our Heroku application. Here, we will learn how to do this using CloudFlare, a popular CDN service. CloudFlare handles our Domain Name System (DNS) for us, but it also gives us some additional benefits over a typical DNS service. As CloudFlare is a CDN, it will distribute our static assets (CSS, JS, and images) across its global network, in addition to managing our DNS records. This makes loading static assets faster for users throughout the world and reduces the requests that have to be served by Heroku. This will save us money on our Heroku bill and also help when scaling our applications. This functionality is available for free with CloudFlare; more advanced options are available to paid accounts.
First, we'll need to sign up for a CloudFlare account. So, let's go to www.cloudflare.com and sign up.
During the sign-up process, CloudFlare will guide us through the process of transferring our domain...