Podmaster serves requests to pods according to the Webpods specification.
npm i -g podmaster
See src/example-config
podmaster -p PORT -c config-file.mjs
The following will create a config in /some/config/dir.
./scripts/setup.sh /some/config/dir pod1.local.webpods.org ex1.local.webpods.org
You can now run npm test
after setting the PODMASTER_TEST_DATA_DIR var:
PODMASTER_TEST_DATA_DIR=/some/config/dir npm test