https://github.com/mrinjamul/gin-bookstore
Simple CRUD Operations for bookStore
https://github.com/mrinjamul/gin-bookstore
crud gin gin-gonic golang sqlite
Last synced: about 1 month ago
JSON representation
Simple CRUD Operations for bookStore
- Host: GitHub
- URL: https://github.com/mrinjamul/gin-bookstore
- Owner: mrinjamul
- License: mit
- Created: 2021-06-22T17:01:38.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-22T17:02:26.000Z (almost 5 years ago)
- Last Synced: 2025-02-01T18:43:50.643Z (over 1 year ago)
- Topics: crud, gin, gin-gonic, golang, sqlite
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gin-bookstore
Simple CRUD Operations for bookStore.
```qoute
Gin by Example !
```
## Used Tools and Technologies
- [Golang](https://golang.org/)
- [Gin Gonic](https://gin-gonic.com/)
- [Gorm](https://github.com/jinzhu/gorm)
- [go-sqlite](https://github.com/mattn/go-sqlite3)
## Available secrets
For ENV,
# Golang ENV (.env)
GIN_MODE=release
PORT=
## Build
```shell
go mod download
go build -o gin-bookstore .
```
## Running
```shell
./gin-bookstore
```
## Endpoints
| Methods | Endpoints | Description |
| ------- | ---------- | ----------------- |
| GET | / | Hello World |
| GET | /books | Get All books |
| POST | /books | Create a book |
| GET | /books/:id | Get book by id |
| PATCH | /books/:id | Update book by id |
| DELETE | /books/:id | Delete book by id |
## Author
- Injamul Mohammad Mollah
## License
- under [MIT license](LICENSE)