DEV Community

Pramoth Suwanpech
Pramoth Suwanpech

Posted on

เริ่มต้น Quarkus 3 part 2.3 Renarde

Renarde เป็นอีกตัวช่วยในการทำ SSR ในรูปแบบ MVC เช่นเดียวกับ Spring MVC ที่มีเครื่องมือให้พร้อมหยิบมาใช้งานเลย เช่น form validator,csrf,routing,email,htmx support,barcode,gen pdf,security....

เริ่มต้นใช้งานก็เพิ่ม dependency ใน pom.xml จากบทความก่อนๆได้เลย โดยคง web-bundler ไว้เหมือนเดิม แต่สามารถเอา qute-web ,rest-qute ออกได้เลยเพราะมี transitive dependency จาก renarde ไปแล้ว

        <dependency>
            <groupId>io.quarkiverse.renarde</groupId>
            <artifactId>quarkus-renarde</artifactId>
            <version>3.0.12</version>
        </dependency>
Enter fullscreen mode Exit fullscreen mode

จากนั้นจะต้องไป disable proactive authen ก่อน เพราะว่าเรายังไม่ได้ config security จะเข้า endpoint ไม่ได้เพราะมัน enable by default

quarkus.http.auth.proactive=false
Enter fullscreen mode Exit fullscreen mode

ที่เหลือก็เหมือน Action based MVC ทั่วๆไปนะครับ รยละเอียดแนะนำให้ไปโหลด เดโมมาลองที่
https://github.com/ia3andy/quarkus-blast จะเป็น Renarde+HTMX ครับ

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay