DEV Community 👩‍💻👨‍💻

Cover image for 3. Creating your first Heroku app

Posted on

3. Creating your first Heroku app

Welcome back!

From previous articles in this series we introduced Heroku as a platform that allows developers to build and deploy and host application easily, we also got started with the Heroku CLI which allow us to manage our application using the command line.
In this part we will be creating our first Heroku application using both the Heroku CLI and the Graphical user interface (Dashboard).

1. Heroku app
To have your application running on Heroku you will need to create a "Heroku app" which is just another instance of our app codebase that will be hosted on Heroku and will be run whenever someone requests our app domain name.
You can create up to 5 Heroku applications with the default unverified Heroku account to create more apps you will need to provide your Credit card information. learn more about Heroku account verification HERE

To create a new application you need to have the application name which must be unique since it will be used to generate your app domain name. By default your app will be deployed on "" for instance if your app is named "foobar" it will be deployed on

2. Creating Your first Heroku app

Using Heroku dashboard
To create your first application make sure you are logged in the browser and go to your dashboard on and find the "create new app" button

Heroku Dashboard

You will be asked to provide app name which:

  • Should be unique they will ask you to choose a different name if the name is already used by someone else
  • Should contain only lowercase letters, number or dashes.

You will be asked to choose the region which will be the region where your app server is located, you are supposed to choose the region near you but any location will do.

Heroku create app form

That's it! Your new Heroku app is created and it can be accessed on but currently it will not work because we haven't added content yet.

Using Heroku CLI
You can also create and manage your application in the command line using the Heroku CLI. you will need to be logged in your Heroku CLI. to get started with the Heroku CLI check the second article in the series HERE

To create the application run the following command

heroku create yourappname
Enter fullscreen mode Exit fullscreen mode
  • the command heroku create will create a new app with the name we have specified and same the app will be available at

Note: app name standards described above still apply for the CLI as well

To specify the region in the CLI you will need to add the region flag (--region)

heroku create yourappname --region eu
Enter fullscreen mode Exit fullscreen mode
  • in this example we are specifying the region to be Europe If you don't specify the region the default will be United states.

That's all. We have created our first app using the Heroku dashboard and CLI and we got ourselves a domain for everyone to access our application. In the following article we will look into getting content to our Heroku app for our users

see you there...


Top comments (1)

andrewbaisden profile image
Andrew Baisden

Heroku was one of the first serverless online platforms that I used for deploying applications. It makes the process super simple in my experience.

Create an Account!
Now it's your turn!
🗒 Share a tutorial
🤔 Reflect on your coding journey
❓ Ask a question

Create an account to join hundreds of thousands of DEV members on their journey.