Textcapade is Create Your Own Adventure game.
If you don't have postgresql installed, you will need it. homebrew is the easiest way
brew install postgresql
Create the database user
$ createuser -w -l textcapade
Initialize database
$ make drop-and-migrate
Generate an episode or three from the jade source
$ npm run buildEpisode episode1
$ npm run buildEpisode episode2-a
(Rebuilding an episode is destructive and thus will fail if any users
are currently in that episode)
Set up local dev data (optional)
```shell
$ npm run knex seed:run
Run the dummy tropo server
$ npm run dummy
Run Hapi server at localhost:8000
with
$ npm start
Logging is done via the debug module under namespade textcapade
So set DEBUG='textcapade'
at the console to show logging
- Open a browser to localhost:8000
- Add a user, click the user, validate the user (or let them via email), then click start episode.
- Go to Author to run a story as that user
Messages sent to the user are derived from Jade templates in the story/ directory At a fork in the tree users must make a decision. The game determines the next file by running a decision function stored in the decisions/ directory.
- run all mocha tests
npm run test
- Postgres Database
- Hapi Server
- Jade templates
- Mocha Testing Framework
- Bookshelf/Knex ORM
You can play using a dummy server when running locally, to set it up:
make drop-and-migrate
npm run buildEpisode episode1
npm run dummy
in one terminal andnpm start
in another- Create a user, and validate with the number: "18005555555"
- Start the game, you can type in the dummy server terminal and hit return to reply.