A simple chat app built with React, ChakraUI & Nest.js
- anonymous live chat preview
- user accounts
- live chat participation for users
# PostgreSQL DB
cd chattr-api && pnpm i
cd prisma && docker-compose up -d
cd .. && prisma generate && prisma migrate dev --name init
# API
pnpm nest start
# UI
cd chattr-ui && pnpm i && pnpm vite dev
chattr-ui/
- React frontend, ChakraUI, Socket.io & React Router
main.tsx
- entry pointAuth.tsx
- authentication contextSocketContext.tsx
- socket.io contextApp.tsx
,Chat.tsx
,Comment.tsx
- app layout & login, signup modals, chat, comment componentsApi.ts
- API client
chattr-api/
- Nest.js backend, Prisma, Socket.io &
main.ts
- entry point, setuphttp-ex.filter.ts
- HTTP exception filter- modules
auth
- authentication moduleusers
- user modulemessages
- message module, websocket gateway