FastAPI is a modern, fast (high-performance), a web framework for building APIs with Python 3.6+ based on standard Python-type hints. In this article, we will see how to setup FastAPI and create a simple application

Step 1 :

We should first install FastAPI. For this, open your terminal and type the following command

pip install fastapi

Step 2 :

Now, we must install a server to run our app. For this, we can use both uvicorn or hypercorn. In this article, we will be using hypercorn

pip install hypercorn

Hypercorn is an ASGI web server based on the sans-io hyper…


In this article, we will how to write a simple voting smart contract. We will write our contract in Remix IDE using Solidity.

A closer look at terms used above :

  • Smart contract is a computer program or a transaction protocol which is intended to automatically execute, control or document legally relevant events and actions according to the terms of a contract or an agreement.
  • Remix IDE (Integrated Development Environment) is a web application that can be used to write, debug, and deploy Ethereum Smart Contracts.
  • Solidity is a contract-oriented, high-level language for implementing smart contracts.

Let’s get started

Step…


CircleCI is a modern continuous integration and continuous delivery (CI/CD) platform. The CircleCI Enterprise solution is install able inside your private cloud or data center and is free to try for a limited time. CircleCI automates build, test, and deployment of software.

CI (Continuous Integration) is the practice of testing each change done to your codebase automatically and as early as possible.

CD (Continuous Deployment) follows the testing that happens during Continuous Integration and pushes changes to a staging or production system.

As we now have some clue about CircleCI, let’s create a small python app and set up CircleCI…


A simple strategy can help you stop procrastinating and over-complicating things.

In this article, we see a simple rule that will make your life happier and less stressful.

We often tend to procrastinate our tasks till the very last minute and when the deadline draws closer, you will not be able to complete even the simpler tasks as you will be tensed and in a hurry to do things.

If you are one of those people, just follow this rule for a week and see the difference yourself.

The “One minute rule” was coined by author and “happiness expert” Gretchen…


In this article, we are gonna see how to dockerize your existing Flask application. We are going to create an image as well as create a docker-compose file so that our services run in an isolated environment.

One of the disadvantages of using only DockerFile is that we would have to build the whole image whenever we make any changes, whereas in the docker-compose we only detect the changes and build it on top of the already existing image.

Step 1: Create a simple Flask app

As our main focus is on Docker, here we are going to use a…


Let’s create a simple flask application that allows you to upload a text file to a specific folder and display its contents.

Flask is a micro web framework written in Python. It is easy to learn and very flexible. Flask is ideal for small scale applications.

Step 1: First, let us create app.py and type the boiler code for flask

In order to run the file, open your terminal in the current working directory and type python <filename> . In our case, the filename is app.py

$ python app.py


In this article, we are going to see how to integrate MongoDB as well as learn some basic commands that will help you get started.

We will be working with MongoDB Atlas so before starting make sure you have a collection in MongoDB Atlas. If not, refer to the below article

After you have done setting up, we will now integrate MongoDB into our Python application.

We gonna use a module called Pymongo to access MongoDB from our application. We first have to install this module. For that, we use the below command

$ pip install pymongo

Now we should…


SSH stands for Secure Shell. SSH is a way to securely communicate with a remote computer. SSH is used for executing commands remotely by interacting with another system’s operating shell.

Using SSH, you can connect with GitHub without supplying your username and personal access token in each visit.

Prerequisites

Step 1: Generating a new SSH key

Open your terminal and use the following line to create a new SSH key.

ssh-keygen -t rsa -b 4096 -C "email@gmail.com"

In the place of email@gmail.com , enter the mail to which…


Miniconda is a free minimal installer for conda. It allows you to create environments and install over 7,500 useful packages. Let’s get started setting up Miniconda in our Ubuntu.

Step 1: Download the latest shell script

Open your terminal and run the following command

$ sudo wget -c https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

Step 2: Make the downloaded script executable

Now we should provide the necessary permissions to the downloaded script to make it executable. For this, we use the chmod command.

$ sudo chmod +x Miniconda3-latest-Linux-x86_64.sh

Step 3: Run the Miniconda installation script

Then we should run the installation script.

$ ./Miniconda3-latest-Linux-x86_64.sh

After…


Do you wanna have an edge on others, then you have come to the right place. Working with Tactlabs will open your eyes to a whole new world filled with loads of new technologies and frameworks that will surely increase your thirst for knowledge.

My time here at Tactlabs is something that I will treasure through the years. Before coming to Tactlabs, I had no hands-on experience and knew nothing about the trending technologies. But after joining, I got the chance to explore new technologies and gain valuable work experience. I was able to make a smooth transition from “Wow…

Godlin Hilda J

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