Script Bytes

Tutorials and Tips for Angular, .Net, and More

ScriptBytes

Tutorials and Tips for Software Development

Cover Image for Run SQL Server on M1 or M2 Macbook

Learn how to run SQL Server on your M1 or M2 Macbook using Docker and SQL Edge.

Jeff F
Jeff F

More Posts

Cover Image for Run a Postgres Database for Free on Google Cloud

Run a Postgres Database for Free on Google Cloud

Learn how to run a Postgres database for free on Google Cloud using Docker and Compute Engine.

Jeff F
Jeff F
Cover Image for Run Postgres in Docker!

Run Postgres in Docker!

Running your Postgres database inside a docker container on your local computer is a great way to test out changes to the database before you push them up to your dev or test environment.

Jeff F
Jeff F
Cover Image for Entity Framework Migrations with SQL Server

Entity Framework Migrations with SQL Server

Entity Framework Migrations is a very powerful tool that helps you maintain your database so that the structure of that database matches the objects you are using in your API application.

Jeff F
Jeff F
Cover Image for Run SQL Server in Docker

Run SQL Server in Docker

Learn how to run SQL Server in a Docker container on your local development machine. This gives you the flexibility to quickly spin up and down database instances for testing.

Jeff F
Jeff F
Cover Image for Run Dotnet Tasks Concurrently

Run Dotnet Tasks Concurrently

Learn how to improve application performance by running .NET tasks concurrently using Task.WhenAll. Reduce processing time significantly for independent, IO-bound operations.

Jeff F
Jeff F
Cover Image for Deploy a .Net Core API to Google Cloud Run

Deploy a .Net Core API to Google Cloud Run

Learning how to Set up and deploy a .Net core API to Google Cloud Run seems daunting at first, but once you go through it you realize it is not too bad. I will show you how to utilize docker containers, Cloud Build, and Cloud Run to get your API up and running in no time.

Jeff F
Jeff F
Cover Image for Local PostgreSQL Database with Entity Framework Migrations

Local PostgreSQL Database with Entity Framework Migrations

I like to run a local copy of my database when I am developing. Mostly so that I can quickly make changes, and so that I am not incurring charges for running a dev database somewhere in the cloud. I will quickly show you how to set up a .Net Core 6 API to use a Local PostgreSQL Database using Entity Framework Migrations.

Jeff F
Jeff F
Cover Image for Swagger 404 When Deployed

Swagger 404 When Deployed

I recently put together a very quick proof of concept for a .Net Core 6 API. When I deployed it, in our case to Google Cloud Run, the swagger page was throwing a 404. It sadly took me and a coworker longer than I care to admit to find the problem.

Jeff F
Jeff F
Cover Image for Setup and Deploy Angular App to Google Cloud Run

Setup and Deploy Angular App to Google Cloud Run

Google Cloud Platform can be quite overwhelming at first. But once you start to understand how the services work together, you realize that it is actually not too bad. In this tutorial, I will show you how to set up and deploy an Angular application to Google Cloud Run using Cloud Build for continuous deployment.

Jeff F
Jeff F
Cover Image for Which Technology To Use For Your New Project

Which Technology To Use For Your New Project

Often times when starting a new project, deciding which technology to use is the hardest part. Should you use that new fancy tech that everyone has been raving about? Should you use the same framework you have been using for the last 6 years?

Jeff F
Jeff F
Cover Image for Custom Angular Data Store

Custom Angular Data Store

Learn how to create a custom Angular data store as an alternative to NGRX and NGXS for small to medium sized applications

Jeff F
Jeff F
Cover Image for Deploy NestJS API to Linux App Service on Azure

Deploy NestJS API to Linux App Service on Azure

A step-by-step guide for deploying a NestJS API to Azure Linux App Service using Azure DevOps pipelines, including build and release configuration.

Jeff F
Jeff F
Cover Image for Angular Role Authorization Using Route Guards

Angular Role Authorization Using Route Guards

Learn how to implement role-based authorization in Angular using route guards to restrict access to certain parts of your application based on user roles.

Jeff F
Jeff F
Cover Image for Internet Explorer toLocaleDateString Formatting

Internet Explorer toLocaleDateString Formatting

Quick summary and fix for toLocaleDateString not formatting dates correctly in Internet Explorer - specifically in calls to an API

Jeff F
Jeff F
Cover Image for Multi-line JSON Strings in Typescript

Multi-line JSON Strings in Typescript

Learn how to handle long JSON strings in TypeScript when dealing with TSLint max-line-length rules and maintain valid JSON parsing.

Jeff F
Jeff F
Cover Image for Making a Custom Angular Quickstart Template

Making a Custom Angular Quickstart Template

One of the most time consuming aspects of starting a new angular project is getting the app to a state where you can actually start doing real development. Making a custom Angular quickstart template can really kick start a new project.

Jeff F
Jeff F
Cover Image for Creating VS Code Snippets

Creating VS Code Snippets

Any time you find yourself typing the same code, or copying and pasting the same code, it might be worth the small amount of time to set up a VS code snippet.

Jeff F
Jeff F
Cover Image for VS Code Tips and Tricks

VS Code Tips and Tricks

Of all the IDEs I have used, VS Code quickly became my favorite for web development. Here are a few tips and tricks on ways to improve your effectiveness using it and make your job easier.

Jeff F
Jeff F