Go to file
ElCastra 9e78e59925 some changes / 変更点 2024-09-25 23:30:51 +07:00
img adding readme.md 2024-09-23 15:59:37 +07:00
public some changes / 変更点 2024-09-25 23:30:51 +07:00
.gitignore first commit 2024-09-23 15:46:16 +07:00
.phcode.json some changes / 変更点 2024-09-25 23:30:51 +07:00
bun.lockb code change 2024-09-24 18:06:14 +07:00
index.js some changes / 変更点 2024-09-25 23:30:51 +07:00
index.js.bak some changes 2024-09-24 22:18:09 +07:00
index.js.bak.old some changes 2024-09-24 22:18:09 +07:00
package.json code change 2024-09-24 18:06:14 +07:00
readme.md edit readme.md 2024-09-23 16:10:03 +07:00
todo.db some changes / 変更点 2024-09-25 23:30:51 +07:00

readme.md

To-Do List App

Project Image

A simple and efficient to-do list app built using HTMX, Hono, and SQLite3.

Table of Contents

Overview

This to-do list app is a lightweight, server-side rendered web application designed to be simple, fast, and efficient. It leverages:

  • HTMX for dynamic, asynchronous requests and partial HTML updates.
  • Hono as a fast web framework for handling HTTP requests and routing.
  • SQLite3 as a lightweight database to store tasks.

Features

  • Create, read, update, and delete (CRUD) tasks.
  • Mark tasks as completed.
  • Responsive design.
  • In-place updates using HTMX.
  • Lightweight and fast backend with Hono.

Technologies

HTMX Hono SQLite3 License

Installation

  1. Clone the repository:

    git clone https://gitler.moe/elcastra/Htmx.git
    cd Htmx
    
  2. Install dependencies: You may use npm, yarn, or any other package manager for JS dependencies and an SQLite manager for the database setup.

    npm install
    
  3. Set up the database: Run the following commands to initialize the SQLite database and create the necessary tables:

    sqlite3 todo.db < schema.sql
    
  4. Run the app:

    npm start
    

    The app will be available at http://localhost:3000.

Usage

Once the app is running, open it in your browser, and you can:

  • Add new tasks.
  • Mark tasks as complete or incomplete.
  • Delete tasks.
  • View all tasks.

Folder Structure

.
├── public/              # Static files (CSS, JS, etc.)
├── src/                 # Application source code
│   ├── routes/          # Hono routes for the app
│   ├── views/           # HTML views
│   └── db/              # SQLite3 database-related files
├── schema.sql           # SQLite database schema
├── README.md            # Project documentation
└── package.json         # Node package file

Contributing

Contributions are welcome! Please fork the repository and submit a pull request if you have improvements or new features to suggest.