Creating Your First Project
Let’s start simple to get a feel for using htmx. Open a terminal window and install Bun by entering the following command:
~~~ console $ curl -fsSL https://bun.sh/install | bash ~~~
Windows users can use WSL to enter this curl command. Another option is to enter the command powershell -c "irm bun.sh/install.ps1|iex". Yet another is to install the Chocolatey[4] package manager for Windows and enter choco install bun.
When the install is finished, cd to the directory where the project will be created, and enter bunx create-hono to create the project. After the “Target directory” prompt, enter a project name like “htmx-demo.” The next prompt will be “Which template do you want to use?”; select “bun”. The next prompt will ...
Get Server-Driven Web Apps with htmx now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.