A full-stack TypeScript chat application demonstrating the use of tRPC for type-safe client-server communication.
packages/
├── client/ # React frontend
├── server/ # Node.js backend
└── slides/ # Presentation slides
-
Frontend
- React 18
- Vite
- TailwindCSS
- tRPC Client
- React Query
- TypeScript
-
Backend
- Node.js
- tRPC Server
- WebSocket
- JWT Authentication
- TypeScript
- Node.js (Latest LTS version recommended)
- Yarn v4.6.0
- Clone the repository
- Install dependencies:
yarn install
Run the following commands from the root directory:
# Check formatting
yarn all:format
# Fix formatting
yarn all:format-fix
# Check linting
yarn all:lint
# Fix linting issues
yarn all:lint-fix
yarn all:typecheck
In separate terminals:
-
Start the backend server:
cd packages/server yarn dev
-
Start the frontend development server:
cd packages/client yarn dev