How atjiu/pybbs works
Project type and purpose
• This is a full-stack, modular web application (“pybbs” forum) built on Spring Boot.
• It provides both a public front-end (Freemarker + static assets) and an admin back-end.
• It exposes REST APIs under /api/*, integrates real-time chat via WebSocket, and supports plugins (Redis caching, ElasticSearch, comment layers, file upload, themes, etc.).
• It uses MySQL (with Flyway migrations), Redis, ElasticSearch, Shiro for RBAC, SMTP/SMS/Telegram for notifications, and Docker for containerization.
File structure
• Top-level:
• src/main/java – Spring Boot application code (config, controllers, services, mappers, models, directives, hooks, interceptors, plugins).
• src/main/resources – YAML configurations (dev/prod/docker), Flyway migrations, Freemarker templates, static assets (JS/CSS/images).
• plugins/ – separate Maven modules, each implements a plugin extension (e.g. redis-cache-plugin, comment-layer-plugin, theme-simple-plugin).
• docs/ – Asciidoc documentation project building the user guide.
• Dockerfile & docker-compose.yml – container and deployment definitions.
• pom.xml – dependency management (Spring Boot, MyBatis-Plus, Shiro, Redis, ES, WebSocket, etc.).
• fronts/ – placeholder for front-end artifacts (readme only).
• Architectural patterns:
• Layered MVC: Controllers → Services → Mappers/Repositories → Database.
• Plugin SPI: custom plugins are discovered and wired at runtime via Spring Context.
• Event/Hooks: service hooks augment core behavior.
• API layer separating web views vs REST endpoints.
Extract insights from the README
• Lists the technology stack: Spring-Boot, Shiro, MyBatis-Plus, Bootstrap, MySQL, Freemarker, Redis, Elasticsearch, WebSocket, I18N.
• Documents how to run (jar, Docker), where to find front-end (/), admin (/adminlogin), and API.
• Mentions plugin architecture and customization points (system settings, external login, messaging).