A TypeScript WebSocket server template with Express, MongoDB, and GitHub OAuth authentication. This is the template that was used for vsmrwhite.
npm install
cp .env.example .env # fill in your values
npm run devsrc/
├── auth/ # GitHub token verification
├── db/
│ ├── models/ # Mongoose models (Game, User, Leaderboard)
│ └── mongodb.ts
├── game/
│ ├── GameManager.ts # Core game logic
│ └── words.ts
├── ws/
│ └── handler.ts # WebSocket message routing
└── index.ts
Licensed under MIT