=======================
A simple dynamic web application built using FastHTML and Python.
This demo application provides a basic CRUD (Create, Read, Update, Delete) interface for managing a clients database. The database is stored in memory using SQLite.
- Create new clients with name, address, and email
- Read and display existing clients
- Update client information
- Delete clients
- Python 3.x
- FastHTML
- Clone this repository:
git clone https://github.com/pitvfx/dynamic-table.git
- Install dependencies:
pip install -r requirements.txt
- Run the application:
python main.py
- Open a web browser and navigate to
http://localhost:5001
- Click on the "Clients" tab to view the list of clients
- Click on the "Add" button to create a new client
- Fill in the client information and click "Submit"
- Click on a client's cell to edit their information
- Click "Delete" to remove a Client from the list.
The application is built using a single Python file, main.py
. This file contains the following components:
- Database setup and configuration
- Client dataclass definition
- FastHTML application setup and routing
- CRUD operations for clients
Pull requests and issues are welcome! Please submit any changes or suggestions to the main.py
file.
This project is licensed under the MIT License. See the LICENSE
file for details.