/go-htmx-tasklist

A simple interactive web application built with Go, htmx, and Bootstrap. This application serves as a to-do list for learning purposes, allowing users to create tasks, mark them as completed or incomplete, delete tasks, and clear all tasks at once.

Primary LanguageGoMIT LicenseMIT

Simple Go Web Application

This is a simple interactive web application built with Go, htmx, and Bootstrap. It serves as a to-do list application for learning purposes. The application allows you to create tasks, mark tasks as completed, delete tasks, and clear all tasks.

Features

  • Create new tasks.
  • Mark tasks as completed or incomplete.
  • Delete individual tasks.
  • Clear all tasks at once.

Technologies Used

  • Go (Golang) for the backend.
  • htmx for dynamic HTML updates.
  • Bootstrap for styling.
  • SQLite for the database.

Installation and Usage

  1. Clone this repository:

    git clone https://github.com/danielmeint/go-htmx-tasklist
  2. Navigate to the project directory:

    cd go-htmx-tasklist
  3. Install Go dependencies:

    go get
  4. Run the application:

    go run main.go
  5. Access the application in your web browser at http://localhost:8080.

Usage

  • Create a new task: Enter a task name in the input field and click "Add Task."
  • Mark a task as completed: Click the checkbox next to the task.
  • Delete a task: Click the "Delete" button next to the task.
  • Clear all tasks: Click the "Clear All Tasks" button.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push your changes to your fork.
  5. Create a pull request to the original repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.