Restores snapshotted content back into Composer. The snapshotting itself is taken care of in flexible-snapshotter.
Tool versions (Node, Java, sbt, Scala) are pinned in .tool-versions and managed
with mise. Install them once with mise install, then:
Run ./scripts/setup.
$ npm install
$ npm run build
# Alternatively to continuously watch for changes and rebuild
$ npm run dev
This project does not have hot module reloading so you will have to reload the page on Javascript or SCSS updates
- Get Composer credentials from Janus
- Make sure you have
restore_contentpermission on CODE environment - Log in to CODE Workflow
$ sbt
[restorer] $ run
The app will then be accessible locally at: https://restorer.local.dev-gutools.co.uk/
Use:
npm run test
Testing interactively
run npm run test:ui in your devcontainer terminal
Open a browser on your host machine and point it at localhost:9323 to open the Playwright UI
Playwright discovers and runs the specs under e2e-tests/steps.
If you want the same Testcontainers stack used by the e2e test without running the spec itself, use:
npm run dev:local
This starts LocalStack and Restorer using the same bootstrap code as the e2e suite and keeps the stack running until you press Ctrl+C.