todolist

command module
v0.0.0-...-3349ed0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

README

todolist

A simple Go API to handle todo list.

Build

make build

Run

TASK_API_CONFIG=./config/ ./todolist

Environnement

This project need a database Postgres.

You can edit the config.yaml file or create yours with your connection's data.

Exemple of DSN :

host=<your host> port=<your port> user=<your user> password=<your password> dbname=<your database> sslmode=disable

Database

The project database is the following :

CREATE EXTENSION IF NOT EXISTS "uuid-ossp";

CREATE TABLE IF NOT EXISTS tasks (
    task_uuid UUID DEFAULT uuid_generate_v4() PRIMARY KEY,
    description VARCHAR(255) NOT NULL,
    status VARCHAR(255) NOT NULL,
    created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
    last_updated TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP
);

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL