Simple todo list app made with Go used as a learning project.
- Go 1.21 or higher
- If you want to use the database driver, you need to have a PostgreSQL server running or have Docker installed.
- Clone the repository.
- Run
go mod vendor
to download the dependencies. - Run
go build
to build the program. - Copy the
.env.example
file to.env
and fill in the values. - If using the
postgres
database driver:- If you don't have a running PostgreSQL server, you can run the
docker-compose.yaml
file withdocker compose up -d
to get one, quickly. - Run migrations inside
./scripts/migrations
with a migration tool of your choice (recommended: https://github.com/golang-migrate/migrate).
- If you don't have a running PostgreSQL server, you can run the
- Run the program with
./cmd/godoit
.
- Pull the latest changes.
- Run
go mod vendor
to download the dependencies. - Run
go build
to build the program. - Ensure that the
.env
file is up-to-date. - If using the
postgres
database driver:- Run latest migrations inside
scripts/migrations
with a migration tool of your choice (recommended: https://github.com/golang-migrate/migrate).
- Run latest migrations inside
- Run the program with
./cmd/godoit
.