Skip to content

Instantly share code, notes, and snippets.

View adeisbright's full-sized avatar

Adeleke Bright adeisbright

View GitHub Profile
#The instructions in this file will be used by docker to build an image
FROM node:16-alpine
RUN echo 'I am testing out working with dockerfile'
WORKDIR /app
COPY package*.json ./
COPY . .
RUN npm install
EXPOSE 3800
CMD ["node" , "dist/src/index.js"]
@adeisbright
adeisbright / Flask-lessons.md
Last active April 3, 2022 20:06
Learning Flask
@adeisbright
adeisbright / Virtual Environment in Python
Last active October 5, 2023 09:13
Setting up virtual environments in Python
When building applications using any programming language, we sometimes use codes provided by the programming community.
In Python, without an isolated environment newer version of a particular package will replace older ones and this will in turn
lead to breaking changes for the project that depends on the older package.
To handle this problem, Python provides us a tool(venv) to create an isolated environment for our project dependencies.
When we install a package, we do not want it to be installed on the global path for site packages; we want that package to be
isolated and constrained to the application that needs it.
@adeisbright
adeisbright / server-side.md
Created March 13, 2022 04:49
Server Side Programming

Programming Servers

I know the term "server" is popular.

Some of us write programs that are termed "Server Side Programs"

Writing server side codes in any language follows the same guideline that I will outline here

@adeisbright
adeisbright / react-todolist-project.md
Created February 21, 2022 06:57
Creating a task manager

React Todolist Project

This project is a task management project that covers essential react features such as:

  1. State Management
  2. Uncontrolled Component
  3. Component Life Cycle
  4. Routing
  5. etc

The Lessons should be followed as presented below:

@adeisbright
adeisbright / rabbitmq-beginner.md
Last active February 1, 2022 16:15
Integrate RabbitMQ into your application faster and easily

RabbitMQ is a message queueing system also know as a message broker. It is a queue that applications can connect in order to to transfer a message or messages or consume from it. RabbitMQ is a queuing system that is mostly used for building event driven systems. In this Gist, I will share some snippets of code and idea on how to go about MQ assuming you are just getting started.

Table of Contents

  1. Understanding RabbitMQ
  2. Downloading and Installing RabbitMQ
  3. Understanding our project
  4. User Service
@adeisbright
adeisbright / bigjara-css.md
Last active October 16, 2021 07:37
Get Started with CSS
const { createServer } = require("http");
const fs = require("fs");
const fsp = require("fs").promises;
let path = require("path");
const { parse } = require("querystring");
/*
The querystring module provides utilities for parsing and formatting url query strings
The parse method of the query string parses a URL query string into a collection of keys and value pairs.
For example , the query string 'name=adeleke&email=adenababanla@gmail.com' is parsed into
/** CSS SELECTORS
--------------------
CSS selectors are the valid ways we can use in selecting elements
to apply style on to in our web page.
You can use the following as selectors :
1. Tag Name e.g p
2. ID name e.g #red-color
3. Class name e.g .red-color
4. Child selecto e .red-color > h3
5. Sibling selector .red-color + .blue-color
@adeisbright
adeisbright / bigjara-javascript-beginner.md
Last active September 19, 2021 04:06
Get started with writing javascript programs