How interaapps/pastefy works
Project Type and Purpose
• This is a full-stack web application called Pastefy, an open-source alternative to Gist/Pastebin.
• Purpose: Allow users to create, view, share and manage code snippets (“pastes”) via a Vue.js single-page frontend and a Java-based REST backend.
File Structure
• Top-level folders:
• frontend/ – Vue 3 SPA, built with Vite, Tailwind, Pinia, Vue Router
• backend/ – Maven-based Java project (likely Javalin or similar lightweight HTTP framework)
• deployment/ & docker-compose.yml – Kubernetes, Docker Compose, CI/CD manifests
• Key backend subfolders:
• controller/ – REST endpoints (pastes, users, public area, admin, auth)
• auth/ – Middleware and OAuth2 strategies (Discord, GitHub, Google, InteraApps, Twitch)
• model/database/ – JPA-like entities (Paste, User, Folder, Notification, etc.)
• model/plugins/ – Plugin abstraction interfaces for extending backend
• ai/ – AI integration feature (PasteAI)
• Key frontend subfolders:
• components/, views/, router/, stores/ – Typical Vue-based structure
• Deployment files: Dockerfile, docker-compose.yml, Kubernetes prod.yaml
Extract Insights from the README
• Describes features (raw preview, fork, API v2, OAuth login, folders, admin panel)
• Deployment options: Docker, Docker Compose, Kubernetes, container-less
• Configuration via environment variables
• Development workflows: separate frontend dev server and backend on port 1337
Detail Without Overthinking
• Every meaningful component: SPA, HTTP server, Controllers, Middleware, Plugins, AI, DB, OAuth providers
• How data flows end-to-end when a user creates or views a paste