Get Started with DigitalOcean using ASP.NET: Chapter 3 Creating a DigitalOcean App

Creating a DigitalOcean account is just like signing up on any normal website. You can use your Google account, GitHub account or simply your email address.

Or you can use my referral link for getting $200 free credits for 2 months. Click here to Sign Up.

Once we are in, we will create a DigitalOcean App.

For our code base, will choose GitHub as the source.

It might ask for permission to GitHub account and repositories. I have given access to All repositories, you may choose however you prefer.

Once permission is granted, we will choose the repository we want to deploy and choose “deploy” branch for our chapter. We will keep the “Autodeploy” checked so whenever we push new changes to deploy branch, it will automatically start building and deploying the application.

Once we go next, we see the screen for choosing a plan. We will keep the default for this project, but you can set depending on your project requirements.

We will add environment variables for our ASP.NET project to deploy successfully on a DigitalOcean Linux App platform.

The following environmental variables will be added only.

You can choose the region that is closest to you.

Once all set, you can see the monthly cost of the project. We will click on Create Resources now.

It will start pulling the code, building and then deploying the project by itself.

We can see the deployment logs for the project by clicking on Activity Logs

Once the project is deployed successfully, you will be provided with a URL to explore our application.

You can use the URL with our “weatherforecast” endpoint to get the data returned.

Leave a Reply