Skip to content

phi-ag/rvt-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rvt.app

Production Preview Coverage

Display Revit file information in the browser

Development

Install fnm or nvm (nvm-windows)

Install Node.js

fnm use

Install pnpm

corepack enable
corepack prepare --activate

Install packages

pnpm i

Watch

pnpm dev

Test

pnpm test
pnpm test:dev

End-to-End tests

pnpm playwright install chromium
pnpm test:e2e --project=chromium
pnpm test:e2e:dev --project=chromium

Deploy

pnpm build
pnpm run deploy
pnpm run deploy:production

Stream logs

pnpm tail
pnpm tail:production

List deployments

pnpm wrangler pages deployment list

Setup

Cloudflare API token

Create a personal API token for Terraform with the following permissions

  • Account / Cloudflare Pages / Edit
  • Zone / DNS / Edit

Copy the token into your Terraform Cloud Workspace variables as cloudflare_api_token (sensitive).

Create a API token for GitHub with the following permissions

  • Account / Cloudflare Pages / Edit

Copy the token into your GitHub Action Secrets as CLOUDFLARE_API_TOKEN.