module
0.0.0-20241203212127-c01f316b1baf
Repository: https://github.com/ntsiris/todo-app.git
Documentation: pkg.go.dev
# README
Todo App
A lightweight and efficient To-Do application built in Go, designed to manage tasks with PostgreSQL integration.
Features
- Task Management: Add, update, delete, and view tasks.
- Environment Configuration: Uses
dotenv
for environment variables. - PostgreSQL Database: Implements
pgx
for efficient database interactions. - Dockerized Deployment: Simplified containerization using Docker.
Requirements
- Go 1.22 or later (for local development)
- PostgreSQL database
- godotenv for environment variable management
- pgx for database interactions
- Docker (optional, for containerized deployment)
Installation
Local Development
-
Clone the repository:
git clone https://github.com/ntsiris/todo-app.git cd todo-app
-
Install dependencies
go mod tidy
-
Set up your
.env
file (optional) -
Run The application
Using Docker
-
Build the docker image
docker build -t todo-app .
-
Start the service using docker compose
docker-compose up
Configuration
Ensure the .env
file includes your database connection details:
DB_HOST=db
DB_PORT=5432
DB_USER=your_user
DB_PASSWORD=your_password
DB_NAME=todo_db