Skip to content

About

Migrate a stateless AWS App Runner service: a Node.js catalog API and smoke test that compare two deployments before you switch clients.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

App Runner migration: stateless catalog demo

This Node.js catalog API shows how to compare two deployments before switching a test client. It has no AWS credentials, real records, or database dependencies.

Read the Gregale guide.

Run locally

With Node.js 24, start the same code on two ports in separate terminals:

PORT=8080 node server.mjs
PORT=8081 node server.mjs

From a third terminal, compare the two origins:

node smoke.mjs http://127.0.0.1:8080 http://127.0.0.1:8081

The smoke test checks health, the exact sample catalog response, and an unknown item returning 404. Locally this verifies the application contract, not either hosting provider. For hosted parity, replace the origins with disposable service URLs. The Dockerfile builds the fixture; set App Runner's HTTP port to 8080 and its HTTP health path to /healthz. Keep the original service unchanged while you test the second deployment.

About

Migrate a stateless AWS App Runner service: a Node.js catalog API and smoke test that compare two deployments before you switch clients.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages