This is a simple REST bookstore project to practice working with go language.
This project uses Docker, it's very easy to install and start using it. Just follow the steps:
- docker-compose build
- docker-compose up -d
- http://localhost:8080 (app)
- http://localhost:9090 (phpmyadmin)
- GET: http://localhost:8080/book/
- GET by ID: http://localhost:8080/book/xxx
- POST: http://localhost:8080/book/ (change xxx to id; JSON parameters: name, author, publication)
- PUT (edit): http://localhost:8080/book/xxx (change xxx to id; JSON parameters: name, author, publication)
- DELETE: http://localhost:8080/book/xxx
- Add validation to some functions;
- Add unit testing