Hangout is web app that allows you to communicate with other persons, either thorough a direct message chat or by using an audio video channel, leveraging peer to peer connection. It also supports messages with media conent, markdown and code.
This is an npm workspaces monorepo:
apps/web– front-end (Vue 3, TypeScript, Pinia, Tailwind + DaisyUI)apps/api– back-end (Express, Socket.IO, Prisma)
npm install– install dependencies for all appscp apps/api/.env.example apps/api/.envand fill inJWT_SECRETcd apps/api && npx prisma migrate deploy– create the SQLite databasenpm run dev– run front-end (http://localhost:5173) and back-end together
Other scripts:
npm run dev:web/npm run dev:api– run a single appnpm run build– build all appsnpm test– run front-end unit tests
The front-end talks to the API through relative paths (/api, /socket.io, /uploads). In development Vite proxies them to http://localhost:3000 (override with API_PROXY_TARGET); in production nginx does.
Everything runs with Docker Compose: nginx serves the front-end and proxies to the API, and the SQLite database plus uploaded files live in the api-data volume.
cp .env.example .env # fill in JWT_SECRET
docker compose up -d --build
Database migrations run automatically when the API container starts.
- Users register and log in with a username and password. Passwords are hashed with scrypt and the API issues a JWT valid for 7 days.
- Uploaded files are stored on disk (
UPLOADS_DIR). Once the folder reaches 3 GB (UPLOADS_MAX_BYTES), further uploads are rejected. Single files are limited to 10 MB.