Skip to content

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.

Notifications You must be signed in to change notification settings

rukywe/go-books-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages