Skip to content

maelys-mcardle/adventure-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adventure-web

This is a web client to play stories written for Adventure.

Installation

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

Setting the story to play

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.

Running the client

Start the server by running the following command:

npm run start

Then open your browser to the following:

http://localhost:8080/

About

Web rendering for adventure story.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published