r/foojay • u/FrankCodeWriter • 2d ago
Build a full-stack web app using only Java, in 5 small classes
On Foojay we published a new article by Hyyan Abo Fakher about building a small customer app where every line is Java, screens included. No separate JavaScript framework, REST layer or second build.
The app has a side menu, a sortable table on top of a database and a validated form. It comes to five classes and one test, about 240 lines, built with webforJ. The author works at webforJ and says so in the article.
The article explains how to generate the project with the SideMenu archetype, how routing and layouts work, how to switch on JPA and H2, and how the entity uses Jakarta validation constraints.
Requirements: Java 21 or higher, Maven, a terminal and a browser.
https://foojay.io/today/build-full-stack-web-app-in-java-with-webforj/