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 vendorto download the dependencies. - Run
go buildto build the program. - Copy the
.env.examplefile to.envand fill in the values. - If using the
postgresdatabase driver:- If you don't have a running PostgreSQL server, you can run the
docker-compose.yamlfile withdocker compose up -dto get one, quickly. - Run migrations inside
./scripts/migrationswith 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 vendorto download the dependencies. - Run
go buildto build the program. - Ensure that the
.envfile is up-to-date. - If using the
postgresdatabase driver:- Run latest migrations inside
scripts/migrationswith a migration tool of your choice (recommended: https://github.com/golang-migrate/migrate).
- Run latest migrations inside
- Run the program with
./cmd/godoit.