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
-
Navigate to the root directory and install necessary Go dependencies:
go mod tidy
-
Set up your MongoDB database. Make sure to have a running instance of MongoDB. Update the database connection string in the Go application configuration.
-
Start the backend server using Air:
air
Frontend Setup
-
Navigate to the
client
directory:cd client
-
Install the frontend dependencies using Bun:
bun install
-
Start the frontend development server:
bun dev
Running the Application
- Make sure both the backend and frontend servers are running.
- Open your browser and navigate to
http://localhost:5173
(or the port specified by Vite) to access the application.
API Endpoints
Method | Endpoint | Description |
---|---|---|
GET | /api/v1/todos | Retrieve all tasks |
POST | /api/v1/todos | Create a new task |
PATCH | /api/v1/todos/:id | Update an existing task |
DELETE | /api/v1/todos/:id | Delete a task |
License
This project is licensed under the MIT License. See the LICENSE file for details.