Categorygithub.com/Caelr/go-task-app
modulepackage
0.0.0-20241023164016-9a99a44db290
Repository: https://github.com/caelr/go-task-app.git
Documentation: pkg.go.dev

# README

Go Task App

A simple task management application built with a Go backend using Fiber and a React frontend using Vite.js.

Table of Contents

Features

  • Create, read, update, and delete tasks
  • User-friendly interface with React
  • Fast performance with GoFiber
  • Persistent storage using MongoDB

Technologies

  • Backend: Go, GoFiber
  • Frontend: React, TypeScript, Vite.js
  • Database: MongoDB
  • Development Tools: Air (for backend live reload), Bun (for frontend dev server)

Setup

Backend Setup

  1. Navigate to the root directory and install necessary Go dependencies:

    go mod tidy
    
  2. Set up your MongoDB database. Make sure to have a running instance of MongoDB. Update the database connection string in the Go application configuration.

  3. Start the backend server using Air:

    air
    

Frontend Setup

  1. Navigate to the client directory:

    cd client
    
  2. Install the frontend dependencies using Bun:

    bun install
    
  3. Start the frontend development server:

    bun dev
    

Running the Application

  1. Make sure both the backend and frontend servers are running.
  2. Open your browser and navigate to http://localhost:5173 (or the port specified by Vite) to access the application.

API Endpoints

MethodEndpointDescription
GET/api/v1/todosRetrieve all tasks
POST/api/v1/todosCreate a new task
PATCH/api/v1/todos/:idUpdate an existing task
DELETE/api/v1/todos/:idDelete a task

License

This project is licensed under the MIT License. See the LICENSE file for details.

# Structs

No description provided by the author