August 2024
Intermediate to advanced
186 pages
4h 3m
English
Before moving on, try the following things to make sure you understand how to implement and use HTTP endpoints with htmx.
In the first project, change the /version endpoint to return HTML instead of text, for example:
| | return c.html(<img alt="some description" src="some-image-url" />); |
Modify the CRUD application to manage a different kind of data. Perhaps instead of dogs it can maintain a list of favorite books.
Modify the CRUD application to persist the data to a file. On server startup, read the file into a string and use the JSON.parse function to convert the string to a collection of data. Every time the collection of data is modified, use the JSON.stringify function to turn the collection of data into a string and write ...
Read now
Unlock full access