Skip to content

Instantly share code, notes, and snippets.

View dsandif's full-sized avatar

Darien Sandifer dsandif

View GitHub Profile
@dsandif
dsandif / WelcomeView.swift
Created August 8, 2021 18:29
A Welcome screen with a gradient / frosted background
//
// Net Estate
//
// Created by Darien Sandifer on 8/8/21.
//
import SwiftUI
struct WelcomeView: View {
var backGroundGradient: some View{
@dsandif
dsandif / PopupViewModifier.swift
Last active August 7, 2021 15:09
SwiftUI Popup modal with Blurred Background
//
// PopupViewModifier.swift
//
// Created by Darien Sandifer on 8/7/21.
//
import Foundation
import SwiftUI
struct Popup<T: View>: ViewModifier {
@dsandif
dsandif / angular6-aws-s3.md
Last active December 19, 2019 17:15
A how-to guide for hosting a static website on Amazon S3 and Cloudfront.

Tutorial

This is a tutorial on hosting a static website on Amazon S3 and Cloudfront. I made this based on an Angular 6 frontend but this write up can also be used as a guide for other frameworks like React or Vue.js. This tutorial also assumes that you already have an Amazon AWS account and domain name through Google Domains or Amazon Route 53. I use Google Domains as a registrar but I will also cover using Amazon Route 53.

Hosting a static SPA on AWS is a pretty straightforward process. This guide will cover:

  • Creating and configuring an S3 bucket for a Single-Page Application (SPA)
  • Uploading an application to an Amazon S3 bucket
  • Creating and configuring a Cloudfront Distribution
  • Configuring Google Domains OR Amazon Route 53