How essadany/motus works
Motus is a browser-based word game split into authentication, gameplay, and score microservices, with Redis stores and a documented HAProxy failover layer. The principal flow is registration/login, word submission and evaluation, score persistence, then score viewing. Edges are based on the supplied source excerpts or README; HAProxy and some browser pages are documented but their runtime wiring is not shown in excerpts.
Main entry points: motus/index.js Game service · score/index.js Score service · authentification/index.js Auth service · script.js Game interface
Components 13
Authentication
- Auth pages
authentification/public - Auth service
authentification/index.js
Gameplay
- Game interface
motus/public/script.js - Game page
motus/public/index.html - Game service
motus/index.js - French word list
motus/liste_francais_utf8.txt
Scorekeeping
- Score interface
score/public/score.js - Score page
score/public/index.html - Score service
score/index.js
Runtime infrastructure
- Session Redis
- Score Redis
- HAProxy
motus/haproxy/haproxy.cfg
Other components
- Player
Connections 17
- Player → Auth pages: opens
README.md - Auth pages → Auth service: submits credentials
authentification/index.js - Auth service → Session Redis: stores sessions
authentification/index.js - Auth service → Session Redis: reads users
authentification/index.js - Player → Game interface: plays
README.md - Game page → Game interface: loads script
- Game interface → Game service: submits word
motus/public/script.js - Game service → Session Redis: stores sessions
motus/index.js - Game service → French word list: reads words
motus/index.js - Game service → Score service: posts score
motus/index.js - Score service → Score Redis: writes scores
score/index.js - Player → Score interface: views scores
README.md - Score page → Score interface: loads script
- Score interface → Score service: requests score
score/public/score.js - Score service → Score Redis: reads scores
score/index.js - Score service → Session Redis: stores sessions
score/index.js - HAProxy → Game service: balances traffic
README.md