An open API service indexing awesome lists of open source software.

https://github.com/zoetrope69/push-notification-twine

🌱 use push notifications to play a (basic) twine story
https://github.com/zoetrope69/push-notification-twine

push-notifications twine

Last synced: 6 months ago
JSON representation

🌱 use push notifications to play a (basic) twine story

Awesome Lists containing this project

README

          

# push-notification-twine

use push notifications to play a (basic) twine story

*need to write a good readme, bare with me*

## install

requires [node and npm to be installed](https://docs.npmjs.com/getting-started/installing-node)

1. `npm install`
2. add environment variables for push notifciations to `.env`. you can use `.env-sample` as an example

## running

```
node main.js
```
> you need to be running on `localhost` or a server with https for this to work
> push notifications do not work in all browsers

## twine

this project uses [twine](https://twinery.org/), something that makes creating a story people easy. it uses the [twison json format exporter](https://github.com/lazerwalker/twison)

you can see the current twison data in the `twison.json` file

![Screenshot of the story in Twine](twine-screenshot.png)

## example

you can find an example over at: https://push-notification-twine.glitch.me/

it's based on the famous "im just waiting for a mate" video: https://www.youtube.com/watch?v=71DIT6hYXYo

you can remix this using glitch

[![Remix on Glitch](https://cdn.gomix.com/f3620a78-0ad3-4f81-a271-c8a4faa20f86%2Fremix-button.svg)](https://glitch.com/edit/#!/remix/push-notification-twine)