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.
- 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
- Go 1.16 or higher
- PostgreSQL database
-
Clone the repository:
git clone https://github.com/zaahidali/Learn-go-language
-
Install the dependencies:
go mod tidy
-
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"
-
Run the application:
go run main.go
-
Access the API at
http://localhost:8080
and start managing your tasks!
Contributions are welcome! If you find any issues or have suggestions for improvement, please create a new issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.