Skip to content

aptible/app-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

app-ui

Aptible's PaaS automates the work of provisioning, managing, and scaling infrastructure, so you can focus on what matters: your product.

Getting Started

1. Install Node and Yarn

Requirements:

  • node v18.15.x
  • yarn v3.6.3

2. Yarn setup

corepack enable
yarn set version 3.6.3

See official instructions

3. Create .env file with environment variables

Add file to the root of app-ui with these variables:

Production APIs:

VITE_APP_URL="http://localhost:4200"

VITE_AUTH_URL="https://auth.aptible.com"
VITE_API_URL="https://api.aptible.com"
VITE_BILLING_URL="https://goldenboy.aptible.com"
VITE_LEGACY_DASHBOARD_URL="https://dashboard.aptible.com"
VITE_METRIC_TUNNEL_URL="https://metrictunnel-nextgen.aptible.com"
VITE_PORTAL_URL="https://portal.aptible.com"

Staging APIs:

VITE_APP_URL="http://localhost:4200"

VITE_AUTH_URL="https://auth-sbx-main.aptible-sandbox.com"
VITE_API_URL="https://api-sbx-main.aptible-sandbox.com"
VITE_BILLING_URL="https://goldenboy-sbx-main.aptible-sandbox.com"
VITE_LEGACY_DASHBOARD_URL="https://dashboard-sbx-main.aptible-sandbox.com"
VITE_METRIC_TUNNEL_URL="https://metrictunnel-sbx-main.aptible-sandbox.com"
VITE_PORTAL_URL="https://portal-sbx-main.aptible-sandbox.com"

4. Run Start Commands

yarn
yarn start

5. All done! Go to http://localhost:4200 The web app will live update after committing changes.

Troubleshooting

Why does my pull request keep failing tests?

Lint codebase

yarn lint

Automatically fix issues

yarn fmt

Sites

Continuous Deployment

Staging

Once merged to main we deploy to staging

This will deploy two apps:

  • app-sbx-main.aptible-sandbox.com - our critical path for what is currently active on Aptible

Production

  1. Create a github release
  2. Deployment paths for above apps:
    • Deployments to app.aptible.com will only fire with a v semver prefix.