API Development

Deploying Django with Gunicorn,Nginx & Supervisor

In this tutorial we will explore how to deploy our django project to a production server. Below are the general steps. Serving Django Project with gunicorn Setup nginx conf in /etc/nginx/sites-available/myproject.conf Create a symbolic link in /etc/nginx/sites-enabled Restart nginx to see 501 Create a myproject.supervisor.conf file in /supervisor/conf.d/ directory Run supervisorctl Using Gunicorn to Serve …

Deploying Django with Gunicorn,Nginx & Supervisor Read More »

Create an Upload and Download Files API Endpoint with FastAPI

FastAPI is an awesome and simple framework for building APIs (application programming interfaces). Among the various features of FastAPI out of the boxwe will be exploring how to include an endpoint whereby we can upload a json file and return another file that we can download. In this tutorial we will create an endpoint for …

Create an Upload and Download Files API Endpoint with FastAPI Read More »

Deploying Streamlit and FastAPI apps using Docker and Docker-compose

Containerization refers to the process of virtualization in which all the components of an application are bundled into a single container image and can be run in isolated user space on the same shared operating system. The containers are basically a fully functional and portable cloud or non-cloud computing environment surrounding the application and keeping …

Deploying Streamlit and FastAPI apps using Docker and Docker-compose Read More »

How to Generate Documentations with MkDocs

Documentations are essential for building softwares, in fact documentation is also part of the software you design and develop. It is what differentiate a good software from not a good one. In this tutorial we will be learning how to use a nice library called mkdocs to generate documentations for our software project. As the …

How to Generate Documentations with MkDocs Read More »

hugframeworkpython

Introduction to Hug Framework – Building a Package,API and CLI at once

In this tutorial we will be learning about how to work with a nice framework called Hug. Hug is a framework that allows you to expose a single code in several ways. You can use hug to build some cool products . You can check out how to use hug to productionize your ML models …

Introduction to Hug Framework – Building a Package,API and CLI at once Read More »