Skip to content

Files

Latest commit

 

History

History

task_manager_api_with_bun

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Go Bun Task Manager API

This project showcases the implementation of a Task Manager REST API using Go Bun. It provides a complete CRUD (Create, Read, Update, Delete) functionality for managing tasks, with data persistence in a PostgreSQL database.

Features

  • Create, read, update, and delete tasks
  • Store tasks in a PostgreSQL database using Go Bun ORM
  • API endpoints for interacting with tasks
  • Error handling and validation of input data
  • Integration with Gin web framework for HTTP routing

Requirements

  • Go 1.16 or higher
  • PostgreSQL database

Getting Started

  1. Clone the repository:

    git clone https://github.com/zaahidali/Learn-go-language
  2. Install the dependencies:

    go mod tidy
  3. Configure the PostgreSQL database connection in the main.go file:

    // Replace the connection string with your own PostgreSQL database credentials
    dsn := "postgres://your-username:your-password@localhost:5432/your-database?sslmode=disable"
  4. Run the application:

    go run main.go
  5. Access the API at http://localhost:8080 and start managing your tasks!

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please create a new issue or submit a pull request.

License

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