2. Tutorial setup
The tutorial is available from the GitHub repository: https://github.com/Saxonica/SaxonJS-Tutorial-2021. The README describes a number of options, but we’ll try the simplest thing first.
Open up a shell window and navigate to the directory where you cloned the repository. (Even when you’re doing the exercises, the server should always be started in the “top level” directory.)
Run the tutorial web server:
Run
./gradlew pythonServerStart
, if you prefer the Python version.(On Windows, use
.\gradlew
everwhere we say./gradlew
!)Run
./gradlew nodeServerStart
, if you prefer the Node.js version.Run
./gradlew dockerServerStart
, if you prefer the Docker container version.
Open http://localhost:9000/hello in your favorite (JavaScript enabled) web browser.
Do you see a “Click me” button? Does it work?