Building The Backend of KAGOAL Using (.NET Core & MongoDB) – Part I

I was playing around with some of the cool stuff around KAGOAL which involved building up the backend services in .NET core, I started by some building blocks around building a rest API project using VSCode then started to take steps around building up the data structure and the backend data store which I decided to take NoSQL store option as it will allow me for much flexibility during the journey of this project also to be specific I decided to build the backend entirely on MongoDB as it provides an easy approach for building document hierarchies that fit perfectly to KAGOAL.

I created a free account with MongoDB atlas as a cloud data store and the process was easy, there was not much of a complicated configuration to get up my collections and access to the data store.

Next was the fun part which involved building up the docker configuration files and preparing some necessary steps to get my APIs hosted on the cloud, I was a bit confused with the available options and was looking for the cheapest selections, through navigating the awesome Internet I got my hands on Digital Ocean which provides a $5 hosting option for my docker, trying something new is always a nice option especially I wanted to move away from the regular cloud services available (Google Cloud, AWS, Azure).

It is a straightforward process to kick off the ground where you start by providing initial details on your project and creating it, in case you already created a project the next screen is more of an optional step to migrate your resources to the new project.

The next stage is building up what is called a Droplet, this is a digital ocean base for its compute configurations it is easy and flexible to start a computing configuration that fits your needs and allows you to host your apps (Web apps, Rest APIs, etc..)

All you need to do to get your droplet is to click on get started button, my configuration for getting a hosted docker container was to select Marketplace and select the configuration that fits my computing requirements, in my case as I am playing around I selected the cheapest configuration which costs $5/mo that comes with 1GB ram/ 1 CPU 1 GB SSD storage and 1000 GB data transfer

Through the configuration screen, you can add more resources and also configure your authentication method either SSH or a one-time password, I took the SSH route and through my account page on the digital ocean, I was able to create my SSH key to access the droplet from my local computer.

Once you are satisfied with the configuration to create your droplet and it will take a minute or so to get your instance ready, at that stage, you can access your droplet and use it to your needs.

In my next article, I’ll be focusing more on how to get your docker container up and running

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  • Sign up
Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.
We do not share your personal details with anyone.