Skip to content

a guestbook page, written entirely in python with FastHTML and deployed on Replit.

Notifications You must be signed in to change notification settings

mattppal/replit-fasthtml-guestbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

a guestbook page, written entirely in python with FastHTML and deployed on Replit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published