Demo 1 showcases basic content access with the JSON folder handler and the JSON content handler.
Demo 2 showcases how to access and display dynamic content lists using the JSON list handler.
Demo 3 showcases content formatting provided by the JSON page handler.
Install Docker.
Install Docker Compose.
Install Node.js.
Builds and runs a pre-configured OpenCms demo backend.
Run docker-compose logs -f
to see the installation progress. Installation will take a while at the first time.
Open http://localhost/mercury-json/ to view the demo backend in the browser.
Open http://localhost/system/login to login as user Admin.
Installs a React.js app.
Run cd demo2 && npm install
and cd demo3 && npm install
accordingly.
You need to run this once per demo application only.
Runs a React.js app in development mode.
Run cd demo2 && npm start
and cd demo3 && npm start
accordingly.
Open http://localhost:3001 to view it in the browser.
demo2
and demo3
run on ports 3002
and 3003
.
All demos make use of contents provided by the standard template of OpenCms called Mercury.
More information about the JSON API is available in the OpenCms JSON API documentation.
More information about the OpenCms demo backend is available in the GitHub repository.