A simple book shop CRUD demonstration implementing the Clean Architecture in GoFiber
In order to run the project, please follow the following steps:
- Clone the Repo
- Go to the "clean-architecture" folder
- Run
go get
- Replace your Mongo DB Connection string in
app.go
API Path | Method | What it does |
---|---|---|
/api/books | GET | Fetches the list of books from the shop |
/api/books | POST | Creates/Adds book to the shop |
/api/books | DELETE | Removes/Deletes book from the shop |
/api/books | PUT | Updates the book details from the shop |