Gamify With the WordPress.com API
summary
Built a dogfooding game that uses WordPress.com API and wpcom.js from a Node/Express app on Heroku, storing each player as a post and updating post content as the score (authenticated with an OAuth2 bearer token). GitHub and WordPress.com webhooks signal events (issues = 2 points, posts = 1 point). The experiment engages: 260 people (65% of the company), producing 2,331 posts and 506 labeled editor issues. It works but requires occasional manual fixes and would benefit from caching and a shorter rolling leaderboard.
AI-written summary · about
chapters (31)
- 0:00Introduction
- 0:15Games
- 1:02What are Games
- 3:10Gamify
- 3:29What is gamification
- 4:47Actionable Gamification
- 5:35Back to Second Grade
- 6:49Dog Food Game
- 7:25Why Gamify
- 9:34Dog Food
- 10:01Go for it
- 11:02Node projects
- 11:28WP MJS
- 12:51OAuth
- 13:43Boss Level
- 15:09Sounds Chewy
- 15:34Sounds Chewy Leaderboard
- 16:25How does this work
- 17:00Webbook plugin
- 17:17Leaderboard
- 17:39Code
- 20:09Helper Functions
- 20:52Fetch Post Data
- 23:00Update Scores
- 23:58WordPresscom App
- 25:25New Bug
- 26:12Test Posts
- 26:36Feedback
- 27:06Gamified
- 27:52Optimizations
- 29:18Question
