Pakai Server
Version 6.99Pakai Server is a full-stack B4J project template for building modern web applications and REST APIs. It generates all HTML server-side using B4X code (no client-side rendering), leverages HTMX for dynamic interactions without custom JavaScript, and includes both a Web UI and a REST API with auto-generated OpenAPI 3.0 documentation and Swagger UI.
GitHub: https://github.com/pyhoon/pakai-server-b4j
Files:
- Pakai Server (6.99).b4xtemplate (52KB)
- Pakai Server Api (6.99).b4xtemplate (40KB)
- Pakai Server Web (6.99).b4xtemplate (34KB)
- swagger.zip (509KB)
Libraries:
- EndsMeet (v2.20) b4xlib (B4J)
- MiniHtml (v3.00) b4xlib (B4X)
- MiniCSS (v0.30) b4xlib (B4X)
- MiniJS (v0.60) b4xlib (B4X)
- MiniORMUtils (v6.00) b4xlib (B4X)
- WebApiUtils (v6.99) b4xlib (B4J)
- sqlite-jdbc-3.7.2.jar
- mysql-connector-j-9.3.0.jar
- mariadb-java-client-3.5.6.jar
Extensions:
- Pakai Lanyard (v0.20) b4xlib
- Pakai Vest (v0.20) b4xlib
- Pakai Watch (v0.60) b4xlib
Features
- Frontend using HTMX v2.0.8, AlpineJS v3.15.8, Bootstrap v5.3.8, Bootstrap Icons v1.13.1
- Responsive design with modal dialog and toast
- SQLite and MySQL/MariaDB backend
- Built-in CRUD/REST API examples
Improvement
- Better UI/UX/DX compared to version 5.x
- More flexible to generate new models
- HTML generated using B4X
- No JavaScript module
- No jQuery AJAX parsing
- JSON/XML API supported
- HelpHandler (API documentation) through WebApiUtils
Tutorial
https://www.b4x.com/android/forum/threads/pakai-framework-v6.169286/Reminder: Please do not post issue or question on this thread.
Always remember to start a new thread for any question and prefix with [Pakai v6].
Attachments
Last edited: