Code Monkey home page Code Monkey logo

to-do-go's Introduction

TODOx

TODOx is a todo list app built with Go, HTMX, Tailwind CSS and SQLite to store the data. The original goal of this app is to try HTMX and see how it can be used to build a simple app.

Features

  • Create, Read, Update, and Delete TODOs
  • Searching TODOs
  • Complete/Reopen TODOs

Stack

The stack aims to be as simple as possible. It consists of:

  • Go is the main language.
  • HTMX for the interactions with the user.
  • Tailwind CSS with the Standalone CLI for styling.
  • SQLite as the database.

Architecture

The application is mostly written in Go and HTML. HTMX facilitates a lot of the interaction with the user on the frontend and the backend endpoints process requests and return HTML that will be then rendered by HTMX.

The Tailwind CSS Standalone CLI takes care of the styling by processing html files and adding resulting CSS to internal/app/public/styles.css. Any CSS in the public folder is served by the Go server. The storage of the application is SQLite.

Running in development

Setup

In order to install the app in development you should download the tailwind css standalone CLI and air for hot reloading. You can do this by running the following command:

go run ./cmd/setup

Running

To run the app in development you can run the following command:

go run ./cmd/dev

And visit http://localhost:3000 to see the app running.

Deploying

The app contains a Dockerfile that can be used to build images and deploy to any container platform.

A few environment variables to consider are:

GO_ENV                          - The environment the app is running in. Defaults "development"
PORT                            - The port the app will run on. Defaults "3000"

to-do-go's People

Stargazers

Lukmanul Hakim avatar

Watchers

Lukmanul Hakim avatar

Forkers

vsampeu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.