Skip to content

lucasotodegraeve/go-todo-mvp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To-do MVP

Read about it on my blog

This app constists out of a CLI interface written in Go and a PostgreSQL database to store the items.

The following technologies where used:

Setup

First build/pull the container image using Nix

nix build .#postgres

Load the image into Docker/Podman. In Nushell this looks like

open result | podman load

or in Bash

podman load < result

Start the database using the justfile. This will first start the conainer and will then use Atlas to apply the schema to the database.

just postgres

The database schema is managed with Atlas and can be viewed in schema.hcl. There is only a one table with the columns: id, completed and name

To directly interact with the database run the command bellow. The password for the postgres user is admin. (You can exit psql with ctrl+D)

just psql

To build the Go app

nix build

Run it with

./result/bin/go-todo-mvp

Atlas and psql generate files in the home directory. Clean them up using

just clean-global

See the justfile other commonly used commands.

About

A to-do MVP app for me to learn new technologies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published