/go-backend

A simple catalog with a Go/Postgres backend

Primary LanguageGoApache License 2.0Apache-2.0

Go Library Project

  • Book CRUD
  • Book Gorm Postgres Migrate
  • Fiber/Rest API Book Crud
  • Test Gorm Postgres
  • Bulk Insert Postgres dataset link
  • Catalog APIs + Pagination (display all in catalog)
  • UI Pagination - All books displayed
  • Indexing all catalog entries (TSV)
  • Live Catalog search by partial title
  • Inventory Management UI (Single bookObj)
  • Support multiple books
  • Library member table, CRUD and API
  • Library member login and search
  • Library admin login and bookObj/member CRUD
  • Support borrowing 1 bookObj (assign to user and track in inventory management)
  • Support multiple bookObj borrow (with limit)
  • Library metrics dashboard

Credits

Graceful Shutdown

gofiber/fiber#899 (comment)

Migration

https://github.com/golang-migrate/migrate

CRUD

https://github.com/karanpratapsingh/tutorials/tree/master/go

https://github.com/AkhilSharma90/go-postgres-gorm

https://www.youtube.com/watch?v=bFYZrEuEDLE

Bulk Insertion

https://betterprogramming.pub/how-to-bulk-create-and-update-the-right-way-in-golang-part-i-e15a8e5585d1

Testing

https://betterprogramming.pub/unit-testing-a-grom-application-with-a-real-db-server-81a1b95ad473

Pagination

https://medium.com/@michalkowal567/creating-reusable-pagination-in-golang-and-gorm-4b23e179a54b

https://dev.to/rafaelgfirmino/pagination-using-gorm-scopes-3k5f

https://jonnylangefeld.com/blog/how-to-write-a-go-api-pagination

UI

https://www.youtube.com/watch?v=QevhhM_QfbM

https://github.com/U-C-S/Fitness-Centre-WebApp/blob/7fe6dd0e806b6c4a51f440a6566c44bce6d8bae6/client/pages/admin/view/trainers.tsx#L19

Pagination in UI

https://dominicarrojado.com/posts/how-to-create-your-own-pagination-in-react-and-typescript-with-tests-part-1/