Skip to content

thypirate/websocket-server-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebSocket Server Template

A TypeScript WebSocket server template with Express, MongoDB, and GitHub OAuth authentication. This is the template that was used for vsmrwhite.

Stack

Node.js TypeScript Express MongoDB GitHub

Getting Started

npm install
cp .env.example .env  # fill in your values
npm run dev

Project Structure

src/
├── 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

License

Licensed under MIT

Support

Buy Me a Coffee

About

WebSocket server template with Express.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors