In this tutorial, I will show you the basics of doing an insert into a Mongo database instance with Go code. I will be on local and provide you with all steps. You can find the original tutorial on my website. You can find a video walkthrough on Youtube.

Setup

I’m assuming you have Mongo installed on your local machine. I also recommend installing Mongo Compass to make it easier to see your data.

I am assuming you have Go installed and have successful compiled at least one Go file. This would confirm your environment works. We will be using my…


The original post was on my website.

In this lesson, I’m going to setup how to scan for security vulnerabilities in Maven packages. They will happen on every push to all branches using Github Actions. I will be leveraging this library.

The assumption is you have a Maven project setup and some basic understanding of Maven. First step is to build your JAR

mvn clean package

You package should build without any issues. Next, you can try the security check:

mvn com.redhat.victims.maven:security-versions:check

This check may or may not return issues.

Github Actions

You should have access to Github Actions (as of writing…


The original story can be found on my personal website. View walk through can be found on Youtube.

In this tutorial, I’m going to show you how to setup an S3 bucket. There are lots of aspects to an S3 bucket and this tutorial only scrapes the surface. We will put a file in the bucket, retrieve the file, and delete the file. We will also briefly go over IAM Roles, IAM Users and bucket policies.

Setup

Start by heading over to Amazon Web Services (AWS), and signing in. Under service in the top left corner, you should see S3. …


Introducing JumpStart: The easiest way to get started on your new MERN project

What do I mean?

As a creator we want to build out an idea. You may have an idea of how it will work, and you get started. The first step is setting everything up. This can be a very time consuming task. More specifically, can be a difficult task if the technology is fairly new. For me, in early 2017, I began to move to a MongoDB, Express.js, React.js, Node.js stack. Also known as a MERN stack. I could find a starting point for Node or Express. I could find a basic React.js app. I could also find code snippets of connecting the…


The original post can be found here.

In this tutorial, we will use Github Actions to zip the code base and create a new release with it.

Code Base Setup

You will need a Github repository and access to Github Actions. First step, clone your repository and switch into it. We will begin to create empty files in the folder. These files represent a simple app.

touch README.md
touch main.py
touch .gitignore

Push the changes to the master branch.

git add --all
git commit -m "Added basic files"
git push

Workflow Setup

We will use the zip command: zip -r release.zip .. This is zip…


The original can be found here on my personal website.

In this tutorial, we focus on running Github Actions on the push event for specific branches. This may be useful if you only want to test on feature branches and do a deployment if master. This was the use case for me. After the tests have passed, the the code review has been approved. It’s time to deploy to production. This is merging to master and running a series of steps. Github Actions makes it very simple to run specific actions/workflows on specific branches.

As I write this tutorial Github…


This was originally posted on my personal website.

In this tutorial, we deploy our changes on master to production (your domain) on each push. The idea: if you are hosting a React GH-Pages app on Github, then you no longer need to manually deploy.

This lesson goes along with Host a React App for Free using Github Pages.

Getting Started

Like the Host a React App for Free using Github Pages, our starting point will be this code repository. I would recommend pulling from the source (and not my fork). Please star my fork, so I know people are using it!

Create…


This post was originally posted on my personal website, then on my Medium page. I put together a Youtube tutorial as well.

In this tutorial, I walk you through setting up a simple React.js application that can be hosted on Github Pages. I really like hosting here because it’s free for me personally, and Github handles “server management”. Once I deploy my React app and verify it’s up, Github handles the traffic surges, updates, etc.

I typically use this MERN boilerplate repository repository but it has too much extra stuff specifically for a Node server. I found this repository. It’s…


This post was original posted on my personal website. I put together a Youtube tutorial as well.

In this tutorial, I walk you through setting up a simple React.js application that can be hosted on Github Pages. I really like hosting here because it’s free for me personally, and Github handles “server management”. Once I deploy my React app and verify it’s up, Github handles the traffic surges, updates, etc.

I typically use this MERN boilerplate repository repository but it has too much extra stuff specifically for a Node server. I found this MERN boilerplate repositorythis repository. It’s a much…


This story was originally posted a few months back on my personal website. Find out why my website is where I post first now.

In this post, we setup a Jenkins CI/CD pipeline on a Digital Ocean droplet. It will trigger on push events to the master branch of a Git repository and build the project. These pipelines are excellent for validating your code changes are properly tested, and changes are instantly deployed after they’re verified. When you are trying to build a resilient system you have to ask yourself, how long is recovery if your servers go down? What’s…

Keith Weaver

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