Skip to content

a2f0/resume

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resume

Quick Start

nvm use
npm i -g pnpm
pnpm install
pre-commit install
pnpm run start-server
pnpm run ci

Testing

Test Locally

# start the dev server
pnpm next dev -p 4001
pnpm run test -- --spec test/specs/svg.e2e.ts

Deploy to Vercel without having to commit or push (the randomized URL for viewing build will be in the output of this command). Note: this will create the directory .vercel at the root of the project, which is in .gitignore. So, if this is a clean clone, this will prompt for a setup. Following the setup prompts configure the local repo.

pnpm vercel # preview deployment
pnpm vercel --prod

Spell check against a aspell definition in dotfiles

aspell --master=en_US --lang=en_US -c resume.json

Infrastructure

Setup

  1. Install tfenv.
  2. Install blackbox.
  3. Run blackbox_decrypt_all_files.
  4. Add google-credentials.json file to the terraform directory.

Linting

cd terraform
terraform fmt

Provisioning

Initialize the backend

cd terraform
terraform init -backend-config=./terraform.backend

Apply the infrastructure

terraform apply --var-file=main.tfvars

Upgrading Terraform

tfenv list-remote
echo "1.3.10" > terraform/.terraform-version
terraform init -backend-config=./terraform.backend
terraform plan -var-file=main.tfvars

Upgrading providers

Upgrade to the maximum version allowed by versions.tf

terraform init -upgrade -backend-config=./terraform.backend
terraform plan -var-file=main.tfvars
terraform apply -var-file=main.tfvars