Categorygithub.com/ntsiris/todo-app
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

  1. Clone the repository:

    git clone https://github.com/ntsiris/todo-app.git
    cd todo-app
    
    
  2. Install dependencies

    go mod tidy
    
  3. Set up your .env file (optional)

  4. Run The application

Using Docker

  1. Build the docker image

    docker build -t todo-app . 
    
  2. 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

# Packages

No description provided by the author
No description provided by the author