Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 761 Bytes

File metadata and controls

39 lines (24 loc) · 761 Bytes

Go Books API

A simple RESTful API for managing a collection of books, built with Go. This project demonstrates basic CRUD operations using an in-memory store and follows Go best practices and project structure.

Project Structure

  1. Clone the repository:
 git clone https://github.com/rukywe/go-books-api.git
 cd go-books-api
  1. Initialize the Go module:
go mod tidy
  1. Initialize the Go module:

This project uses gorilla/mux for routing and google/uuid for generating unique IDs. You can install them by running:

go get github.com/gorilla/mux
go get github.com/google/uuid

Running the API

To start the server, run:

go run main.go

The server will start on http://localhost:8080.