- Go
- Docker
- PostgreSQL
- HTMX
- Gin Gonic
- Zap Logger
- pgxPool
- squirrel
- Ensure you have Docker and Docker Compose installed on your machine.
- Clone the repository:
git clone https://github.com/netscrawler/simpletodo.git cd simpletodo
- Build and run the Docker containers:
docker-compose up --build 
- The application will be available at http://localhost:8080.
- Ensure you have Go and PostgreSQL installed on your machine.
- Clone the repository:
git clone https://github.com/netscrawler/simpletodo.git cd simpletodo
- Set up the PostgreSQL database:
psql -U postgres -c "CREATE DATABASE htmxtst;" psql -U postgres -d htmxtst -f migrations/init.sql/001_createTables.sql
- Set the environment variables:
export DATABASE_HOST=localhost export DATABASE_PORT=5432 export DATABASE_USER=postgres export DATABASE_PASSWORD=postgres export DATABASE_NAME=htmxtst export SERVER_PORT=8080 export SERVER_HOST=0.0.0.0 
- Build and run the application:
go build -o main ./cmd/main.go ./main 
- The application will be available at http://localhost:8080.