This is a web client to play stories written for Adventure.
Make sure NodeJS and Git are installed. To install, run the following in a command-line prompt:
# Download the source code.
git clone https://github.com/maelys-mcardle/adventure-web
# Switch to the repository.
cd adventure-web
# Install the dependencies.
npm install
Edit the package.json
file to point to the path of your story:
{
"config": {
"port": "8080",
"story": "node_modules/adventure/examples/thehouse/"
},
}
The port
refers to the port the web server will listen on.
Start the server by running the following command:
npm run start
Then open your browser to the following:
http://localhost:8080/