Company
Date Published
Author
Kevin Lewis
Word count
1190
Language
English
Hacker News points
None

Summary

Creating an online version of the game "Once Upon a Time" using Twilio Programmable Chat allows friends to play together, sharing a story one line at a time. The project uses Node.js, Express.js, and Twilio's Programmable Chat API to create a basic online version of the game. The code includes endpoints for retrieving messages from the server and displaying them on the client-side. Once Upon a Time is played by navigating to the chat endpoint, adding new lines to the story, and then viewing previous lines displayed in a browser window. The project also includes buttons to display all messages or just the latest one, and allows users to set their own name.