REST API app for library management using Go and MySQL. This app, is purposed to make it easier for librarians to manage book loans.
- How to install (using Go)
- How to install (using Docker)
- Usecase diagram
- ERD and database
- Packages used
- API documentation
- Login credentials
- Logging
- Unit test
- Manual test
Requirement: Go Programming Language, Golang Migrate, & MySQL
- Clone this repository
git clone https://github.com/hasyimzii/go_library_backend.git
- Open repository in terminal
cd go_library_backend
- Open MySQL & make database
CREATE DATABASE go_library_backend;
- Run migrations
# TODO: run migration
- Build Go app
go build
- Excecute binary file
./go_library_backend
- Now the app is running
Requirement: Docker
- Clone this repository
git clone https://github.com/hasyimzii/go_library_backend.git
- Open repository in terminal
cd go_library_backend
- Excecute docker compose command
docker composer up -d
- Now the code is running
- (If you want to remove the container, image, & volumes)
docker compose down
docker image rm go_library_backend:1.0.0
docker volume rm go_library_backend_logs
In this app, there are 3 actors:
- Admin : User who has access to manage librarian
- Librarian : User who has access to manage book, borrowing, and member
- Member : User who has acces to find book by name or category
(Must've installed: Go Programming Language)
(If using VSCode, must've extension: REST Client by Huachao Mao)