Skip to main content

Demo deployment: Render (free) + Neon (free) at avatax.bowers.cloud

A public demo of the service. It uses the simulated tax engine (no Avalara account), live Bank of Canada exchange rates, in-memory messaging, and a free Neon Postgres. Everything is configured in render.yaml.

The demo API key grants full access, and the service refuses to start with it unless the tax engine is Simulated. Never put real Avalara credentials or real customer/vendor data in this deployment.

Free-tier behaviour: Render puts the service to sleep after about 15 minutes idle, and the next request takes roughly 30–60 seconds while it wakes. Scheduled jobs (rate import, retries) only run while it's awake; trigger one by hand with POST /api/v1/admin/jobs/{name}/run. Neon also suspends its database when idle and wakes in under a second.

1. Create the database (Neon)​

  1. Sign up at https://neon.tech (free) and create a project named pvc-integrations, database integrations, region AWS US West 2 (Oregon) (same region as the Render service).
  2. On the project dashboard, open Connect, turn off "Connection pooling", and copy the connection string. It looks like postgresql://…@ep-xxxx.us-west-2.aws.neon.tech/integrations?sslmode=require….
    • Use the direct connection, not the -pooler host: the service relies on session-level Postgres advisory locks, which a transaction-pooling proxy breaks.
    • The service accepts this URL form as-is.

2. Create the service (Render)​

  1. Sign up at https://render.com with GitHub and give it access to JDoyleB/AvaTax.
  2. New → Blueprint, pick JDoyleB/AvaTax (branch main). Render reads render.yaml and proposes the service pvc-integrations-demo on the free plan.
  3. When asked for ConnectionStrings__Integrations, paste the Neon connection string from step 1.
  4. Apply. The first build takes a few minutes. On startup the service creates its tables and seeds two demo entities (PVC in USD, DXT-CA in CAD) plus sample tax-code mappings for every line category.
  5. Check https://pvc-integrations-demo.onrender.com/health/ready returns Healthy, and open /docs/.
  6. Copy the generated Auth__DemoKey from the service's Environment tab. Send it as the X-Api-Key header (the docs page has an "ApiKey" auth option).

After this, every push to main redeploys automatically.

3. Point avatax.bowers.cloud at it​

  1. In Render: service → Settings → Custom Domains. avatax.bowers.cloud is already listed from render.yaml; Render shows the target (pvc-integrations-demo.onrender.com).
  2. Add a DNS record where bowers.cloud's DNS is managed:
    • If the domain uses Vercel's nameservers (Vercel → Domains → bowers.cloud → DNS Records): add CNAME avatax → pvc-integrations-demo.onrender.com.
    • Otherwise, at the registrar's DNS settings: the same CNAME.
    • The main site at bowers.cloud is untouched; only the avatax subdomain points at Render.
  3. Back in Render, click Verify. The TLS certificate is issued automatically, usually within a few minutes.

Result: https://avatax.bowers.cloud opens the playground, a page with a form for each endpoint (prefilled with sample data), formatted results, a copy-as-curl button and two explainers. Paste the demo key into the box at the top; it stays in that browser only. The documentation hub is at /docs/ and the API reference at /docs/api. Set Playground__Enabled to false to turn off the playground; / then redirects to /docs/.

4. Try it​

KEY=<Auth__DemoKey from Render>
BASE=https://avatax.bowers.cloud

# Today's USD→CAD rate (live Bank of Canada)
curl -H "X-Api-Key: $KEY" "$BASE/api/v1/fx/rates?from=USD&to=CAD"

# Tax estimate for a PO: HVAC labor + materials at an Austin, TX job site (simulated rates)
curl -H "X-Api-Key: $KEY" -H 'Content-Type: application/json' "$BASE/api/v1/tax/estimates" -d '{
"entityId": "PVC", "direction": "Payable", "counterpartyCode": "VEND-1",
"jobSite": { "line1": "100 Congress Ave", "city": "Austin", "region": "TX", "postalCode": "78701", "country": "US" },
"lines": [ { "category": "Labor", "amount": 250, "workType": "HVAC" }, { "category": "Material", "amount": 100 } ] }'

Housekeeping​

  • Change the demo key: Render → Environment → Auth__DemoKey → set any value (or generate one) → save (redeploys). A short key is easy to guess; that's acceptable here only because the key works solely with the simulated tax engine.
  • Reset demo data: drop and recreate the Neon database (Neon → Branches → reset). The next start re-seeds it.
  • Take it down: suspend the Render service and remove the CNAME.
  • Render's free plan includes a monthly allowance of running hours; one demo service fits within it.