Skip to content

Commit 198591b

Browse files
committed
Modern Frontend Complexity Alternative
1 parent 66a75f7 commit 198591b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+3698
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
wrapperVersion=3.3.4
2+
distributionType=only-script
3+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM maven:3.9-eclipse-temurin-25-alpine AS build
2+
3+
WORKDIR /build
4+
5+
COPY pom.xml .
6+
COPY src/main/java ./src/main/java
7+
COPY dist/src/main/resources ./src/main/resources
8+
9+
# reuse deps across builds
10+
RUN --mount=type=cache,target=/root/.m2 mvn clean package
11+
12+
FROM eclipse-temurin:25-jre-alpine
13+
COPY --from=build /build/target/modern-frontend-complexity-alternative.jar modern-frontend-complexity-alternative.jar
14+
ENTRYPOINT ["java", "-jar", "modern-frontend-complexity-alternative.jar"]
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Modern Frontend Complexity Alternative
2+
3+
A simpler approach to build web apps with all the expected features:
4+
* fast load times
5+
* native-like, smooth transitions between pages
6+
* high degree of interactivity; most user actions should feel fast
7+
* real-time validation, especially for complex forms and processes
8+
* great development experience - ability to quickly see and validate UI changes
9+
* ability to create, share and use UI components
10+
* testability - does it work?
11+
* translations, internationalization
12+
* ??
13+
14+
For local development we need:
15+
* Java 25
16+
* node (TailwindCSS management)
17+
18+
For building & packing, Java is not required but Docker must be present.
19+
20+
For local development, run:
21+
```
22+
./mvnw spring-boot:run
23+
```
24+
To have reloadable backend; in other terminal run
25+
```
26+
npm ci
27+
28+
cd ops
29+
./live-css-gen.sh
30+
31+
≈ tailwindcss v4.2.2
32+
33+
Done in 93ms
34+
Done in 169µs
35+
Done in 4ms
36+
```
37+
To have CSS classes (thanks to the use of Tailwind) to be live-generated.
38+
39+
TODO:
40+
* recheck dev instructions
41+
* input live validation?
42+
* some tests
43+

modern-frontend-complexity-alternative/mvnw

Lines changed: 295 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)