The GitHub CLI (gh repo clone)

The GitHub CLI (gh repo clone) GitHub CLI beta version was released a while ago, and it comes with really cool features. I have been using and interacting with GitHub without necessarily visiting the website, that’s fun right. An alternative to using GitHub CLI is HUB, which was there before GitHub cli was introduced. GitHub CLI is an open-source project, here on GitHub. I had an article before on using GitHub CLI and its commands, so this is kind of like an update because the cli is up on version 1.x.x right now, better to stay on the know/updated. To get the latest releases of the cli https://github.com/cli/cli/releases ...

June 9, 2024 · 2 min · Chris Achinga

Using Github's CLI on Ubuntu & Commands.

gh cli web Working with GitHub has never been boring, as a matter of fact, it’s the best part of the development process on my side. As usual, we use git and other distributed version control systems like Mercurial and many more. I have been using the GitHub cli since February this year, and it is great. So let me show you how I got to use it. I’m on Ubuntu by the way. But I guess the process is the same on other OS, I’ll check it out. ...

June 9, 2024 · 2 min · Chris Achinga

Using Netlify Forms

It’s normal to have a back-end on your website for your forms to be functional. Say no More! Netlify offers hosting to static websites and serverless technologies, and it comes with super great features including form handling without a back-end. Let’s build a form with Netlify: What you will need: Netlify account GitHub account First off let’s start with a simple html form: Create a new html file and paste the snippet below: ...

June 9, 2024 · 1 min · Chris Achinga

Seeding Data in Django Using Faker

Seeding data in a Django project can be essential for development and testing. Faker, a Python library, provides a convenient way to generate placeholder data realistically. This guide will explore how to seed data using Faker in Django. Here is an example model: First, let’s consider an example model consisting of Skill and Category. from django.db import models import uuid class Skill(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False, unique=True) title = models.CharField(max_length=200, unique=True) def __str__(self): return self.title class Category(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False, unique=True) title = models.CharField(max_length=200, unique=True) def __str__(self): return self.title Creating a Seeder Command To seed data easily, we’ll create a custom management command. ...

March 27, 2024 · 2 min · Chris Achinga

Beginners Guide to Using APIs in Python

Application Programming Interfaces (APIs) are crucial in the world of software development. They serve as the backbone for communication between different software applications. This article explores how to interact with a simple API using Python. We’ll use a dummy server set up using JSON-Server, a package that allows you to create a fake API for testing and development purposes. Setting Up the Dummy Server Before diving into Python code, let’s set up our dummy server. JSON-Server provides a full fake REST API with zero coding in less than a minute(not literally). Here’s how you can set it up: ...

January 2, 2024 · 3 min · Chris Achinga

Building Progressive Web Apps in Angular (using pwafire)

Progressive Web Apps(PWA) are basically sites that use modern web tools to provide app-like experiences to users. https://web.dev/explore/progressive-web-apps Progressive Web Apps (PWA) are built and enhanced with modern APIs to deliver enhanced capabilities, reliability, and installability while reaching anyone, anywhere, on any device with a single codebase: https://web.dev/articles/what-are-pwas PWAs is a very interesting topic when it comes to user experiences and why businesses would use it. It comes down to users needs and organization goals and agenda, but hear me out: ...

December 12, 2023 · 5 min · Chris Achinga

Creating an installable Next.Js Application

Next.js, a React framework for server-side rendering, provides a solid foundation for creating fast and efficient web applications. In this article, we will explore the process of creating an installable Next.js application, taking advantage of the PWA features offered by modern browsers. What is a Progressive Web Application (PWA)? A Progressive Web Application is a web application that utilizes modern web capabilities to deliver an app-like experience to users. PWAs are built with web technologies such as HTML, CSS, and JavaScript and can be accessed through a browser without installing an app store. PWAs offer several advantages, including offline functionality, push notifications, and the ability to be added to the user’s home screen for quick access. ...

June 25, 2023 · 5 min · Chris Achinga

How to Fetch Data from an API in Angular

The Dad Jokes App: Spreading Laughter One Click at a Time Humor has a unique way of brightening up our day and creating moments of joy. In the digital age, countless apps cater to various interests, and one app that stands out is the Dad Jokes App. This lighthearted application brings a collection of witty and groan-inducing dad jokes to your fingertips, ensuring laughter is just a click away. In this article, we’ll explore the features and development of the Dad Jokes App and its impact on users’ daily lives. ...

May 29, 2023 · 5 min · Chris Achinga

Deploying A Django Project on PythonAnywhere

Deploying a Django project on PythonAnywhere lets you make your web application accessible online. With PythonAnywhere, you can create a web app, configure it with a WSGI file, and host your Django project seamlessly. Prerequisites: Pythonanywhere Account An existing Django project is ready for deployment. GitHub (Code Repo) Basic Familiarity with Django and the command line interface For demo purposes, please refer to the following project: It’s a voting app from the official Django Tutorial ...

May 23, 2023 · 4 min · Chris Achinga

Building a Weather and Time Telegram Bot using Node.js

Telegram bots are automated applications that run inside Telegram. Users can interact with bots by sending messages, commands, and inline requests. Today, we’ll walk you through how to build a simple Telegram bot using Node.js that provides weather and time information for any city. Prerequisites Before we start, make sure you have the following: Node.js and npm are installed on your machine. A Telegram account to create and manage bots. An API key from OpenWeatherMap. Setting Up Your Project Firstly, install the required Node.js packages: dotenv, node-telegram-bot-api, axios, and moment-timezone. ...

May 15, 2023 · 4 min · Chris Achinga