This is a Go project for book management, similar to a bookstore, allowing you to manage a library of books.
- Go 1.21.6 or higher
- Clone the repository:
git clone https://github.com/jesbalchiero/bookstore-api.git
- Navigate to the project directory:
cd bookstore-api
- Run the application:
go run main.go
Access the application at http://localhost:9010 to begin managing your bookstore.
Add books to the library
Update books to the library
Remove books from the library
List all books
Search for books by id
-
/cmd/main/main.go
: Entry point of the application. -
/pkg/config/app.go
: Database connection. -
/pkg/controller/book-controller.go
: HTTP handlers to handle book-related requests. -
/pkg/models/book.go
: Definition of the Book type and related functions. -
/pkg/routes/bookstore-routes.go
: HTTP routes configuration. -
/pkg/utils/utils.go
: Utility functions and helpers.
If you want to contribute to this project, feel free to open an issue or send a pull request.