Skip to content

jesbalchiero/bookstore-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Bookstore

This is a Go project for book management, similar to a bookstore, allowing you to manage a library of books.

Requirements

  • Go 1.21.6 or higher

Installation

  1. Clone the repository:
git clone https://github.com/jesbalchiero/bookstore-api.git
  1. Navigate to the project directory:
cd bookstore-api
  1. Run the application:
go run main.go

Usage

Access the application at http://localhost:9010 to begin managing your bookstore.

Features

Add books to the library

Update books to the library

Remove books from the library

List all books

Search for books by id

Project Structure

  • /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.

Contributing

If you want to contribute to this project, feel free to open an issue or send a pull request.

About

A Book Management System in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages