A simple, real-time guestbook application built and deployed with:
- FastHTML: A Python framework for building HTML applications
- HTMX: For seamless AJAX requests and updates
Say hi: https://guestbook.mattpalmer.io or follow along for more!
- Fork the Repo
python main.py
- The application will start, and you can access it via the provided URL
That's it!
- Update the
MAX_NAME_CHAR
andMAX_MESSAGE_CHAR
constants inmain.py
if you want to change input limits - Modify the
TIMESTAMP_FMT
constant to change the timestamp format - Adjust the styling in
style.css
to customize the appearance - We're currently storing data in SQLite via FastHTML's own interface. For persistent data, you'll need to modify the db or deploy it somewhere. Here's an example doing so with Replit.