Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

32 Commits

Folders and files

Repository files navigation

Task Management System

This is a Task Management System built with Go, Gin, and MySQL. It allows users to manage tasks and users, with authentication and authorization features.

Features

  • User authentication and authorization
  • CRUD operations for users and tasks
  • Task assignment to users
  • Middleware for token validation
  • Docker support for easy setup

Requirements

  • Go 1.23.2 or later
  • Docker
  • Docker Compose

Installation

  1. Clone the repository:

    git clone https://github.com/manosvelivasakis/taskmanagement.git
    cd taskmanagement
  2. Copy the example environment file and update it with your configuration:

    cp .env.example .env
  3. Build the Go application:

    make build
  4. Start the application using Docker Compose:

    make up

Usage

To run the application locally without Docker, use the following command:

make run

To stop the Docker containers, use:

make down

API Endpoints

Authentication

  • POST /login: User login
  • POST /register: User registration

Users

  • POST /: Create a new user
  • GET /user: List all users
  • GET /user/:id: Get a user by ID
  • PUT /user/:id: Update a user by ID
  • DELETE /user/:id: Delete a user by ID

Tasks

  • POST /task: Create a new task
  • GET /task: List all tasks
  • GET /task/:id: Get a task by ID
  • PUT /task/:id: Update a task by ID
  • DELETE /task/:id: Delete a task by ID
  • GET /task/user/:id: Get tasks assigned to a user

Environment Variables

The following environment variables need to be set in the .env file:

Database Configuration

DB_HOST=your_db_host
DB_PORT=your_db_port
DB_USER=your_user
DB_PASSWORD=your_password
DB_NAME=your_db_name
DB_ROOT_PASSWORD=your_root_password
DB_PATH=path/to/your/init-scripts/folder
APP_PORT=8080

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages