Posts

Showing posts from 2020

Building an AWS Lambda through AWS Console and Visual Studio

Image
One of the most useful services available in AWS is Lambdas. A Lambda is a serverless app that can be used to run custom code manually, on a set schedule, or when a separate AWS service triggers it. Lambdas are especially useful when you need to schedule actions to run on one of your apps. I will show you how to create the Lambda through the AWS Console and how to build and push the code using Visual Studio. Create an AWS Lambda through AWS Console Creating a Lambda through the AWS Console is very simple. To do this, you first need to login through the AWS website (you can create a free account for development purposes). Once you have logged in, make sure you are in the region that you want the Lambda to run in (it is possible to have a Lambda access services in a different region, but that is beyond the scope of this tutorial). Once you are in the desired region, select Lambda in the list of services. Here is where your Lambdas in the selected region will appear. Click Create functi

A Basic Intro Into Making React Components

Image
We have all been there; we are developing a page that is like another, so we copy an entire section of code from another page to add to our new page. This works, but now we just added another 500 lines of html to our already 1500-line page. Since we are the ones who wrote the page it makes sense to us, but to others it is impossible to find what sections need to be changed when a bug is found. Even worse, if the bug exists in the copied code it needs to be fixed in the source and all copied locations. This is a nightmare when it comes to long term maintenance of a site. A component reduces redundant code and simplifies pages into small, easy to understand chunks that can be modified easily. Transitioning to components is somewhat easy but takes some practice to see when something should be broken into a new component. Generally, components should be dumb and not contain too much data interaction. They should take in data to display and execute functions on the parent to mutate data.

Setting Up IntelliJ Run/Debug Configurations

Image
  IntelliJ is a powerful integrated development environment that supports many languages and supports multiple module applications. When starting out, the configuration page may seem daunting because configurations may not auto populate. In this example we will be setting up the build for a Vue application; but the process is the same for any JavaScript framework using a node express server. To get it started, click the + button to add a new configuration. From the list select the framework you are using for your application. Depending on your selection, some defaults will be provided. For example, when npm is selected it will search for a package.json in your directory and set the command. This is the basics to get your applications started, but we can take this a little bit further. In a typical team environment, the package.json is getting updated as team members are adding dependencies for the code. We can use the Before launch section to make sure everything is updated before