Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jesbalchiero/bookstore-api
A Book Management System in Go
https://github.com/jesbalchiero/bookstore-api
Last synced: 3 days ago
JSON representation
A Book Management System in Go
- Host: GitHub
- URL: https://github.com/jesbalchiero/bookstore-api
- Owner: jesbalchiero
- Created: 2024-05-14T05:32:14.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-14T13:19:04.000Z (9 months ago)
- Last Synced: 2024-05-15T13:07:25.654Z (8 months ago)
- Language: Go
- Size: 5.35 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```bash
git clone https://github.com/jesbalchiero/bookstore-api.git
```2. Navigate to the project directory:
```bash
cd bookstore-api
```3. Run the application:
``` go
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.