Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.41 KB

README.md

File metadata and controls

33 lines (22 loc) · 1.41 KB

Matt's Guestbook

A simple, real-time guestbook application built entirely in Python and deployed with Replit.

This app is only ~150 lines of Python (in one file) and makes use of:

  • FastHTML: A Python framework for building HTML applications
  • HTMX: For seamless AJAX requests and updates
  • Replit: Online IDE and hosting platform

Say hi: https://guestbook.mattpalmer.io or follow along for more!

Setup

  1. Fork the Replit project
  2. Click the "Run" button at the top of the Replit interface
  3. The application will start, and you can access it via the provided URL

That's it!

Configuration

  1. Update the MAX_NAME_CHAR and MAX_MESSAGE_CHAR constants in main.py if you want to change input limits
  2. Modify the TIMESTAMP_FMT constant to change the timestamp format
  3. Adjust the styling in style.css to customize the appearance
  4. The Replit database is used for storing messages (from replit import db).
    1. You can easily swap this with Postgres / SQLite if you'd prefer an alternative.