How kiltakaro/discord_scala works
Project type and purpose
• This is a full‑stack web application (“Discord en scala”) that mimics core Discord features (user registration, authentication, friend management, guilds/servers).
• The backend is written in Scala (sbt project) and uses ClickHouse as its database. The frontend is a Vue.js single‑page application built with Vite and styled with Tailwind CSS.
File structure
• Top‑level directories:
• backend/ – Scala API service (build.sbt, src/main/scala/*.scala)
• database/ – SQL scripts to initialize and seed the ClickHouse database
• frontend/ – Vue.js SPA (src/components, src/views, router, assets)
• Build/config files: sbt files under backend/, package.json and Vite config under frontend/
• There is no microservice split: backend is a single monolith with multiple Scala classes (Admin, Authentification, Database, Friend, Guild, Main, User).
README
• Confirms a three‑part launch (Scala server, Vue dev server, ClickHouse).
• No external third‑party APIs beyond ClickHouse and Node.
Elements
• Browser → SPA assets (HTTP GET)
• SPA → API (HTTP POST/GET)
• API → DB (SQL queries)
• Backend in another (e.g., blue),
• Database in a third (e.g., orange).