Following up on a discussion on Twitter and updating the example for deployment on Modal.
I simplified the setup by putting the FastHTML app and the Modal app in the same file and separating the server and development requirements.
I added a section to the README on development on Modal -- hot-reloading servers and shells. This isn't super useful in an example this simple, but it starts to matter once you split out local and development/prod secrets, environments, and resources (accelerators, HTTPS/IPs, etc).
I also added a bunch of comments to the code and additional color to the README.
Following up on a discussion on Twitter and updating the example for deployment on Modal.
I simplified the setup by putting the FastHTML app and the Modal app in the same file and separating the server and development requirements.
I added a section to the README on development on Modal -- hot-reloading servers and shells. This isn't super useful in an example this simple, but it starts to matter once you split out local and development/prod secrets, environments, and resources (accelerators, HTTPS/IPs, etc).
I also added a bunch of comments to the code and additional color to the README.