- 🔥 Development server with hot-reload (using WebSocket);
- 🔒 Authentication;
- 🥡 Response caching;
- 🐥
gzip
compression on static files during build time; - 👨💻 CLI tool for common operations;
To install dependencies:
bun i
To run:
Note Setup the
.env
file before running thestart
command
bun start
To run the CLI:
bun cli
For the styles/static files, this boilerplate currently uses a customized Bun plugin for PostCSS to compile .css
and compress them using gzip
at the application start up/build time, outputting these files to public
(build results are ignored by default).
The boilerplate also includes a cli build
command that will fetch and minify the htmx
/hyperscript
JS files at build time, outputting them to public/external/app.js
(also ignored and compressed by default).
Both are ran before the start
/dev
commands (currently changing css
files does not trigger a reload).
The Layout
component is used on each page of the application to include the built style/script files.
This project was created using bun init
in bun v1.0.3. Bun is a fast all-in-one JavaScript runtime.
This is not production ready yet!