The Library Management System (LMS) is a backend API designed to provide the core functionalities for managing a library's book collection and user interactions.
-
go install github.com/pressly/goose/v3/cmd/goose@latest
-
Create a .env file at the root of project:
DB_USER=admin DB_PASS=secret DB_PORT=5432 DB_NAME=lms BE_PORT=8080 BE_JWT_SECRET=dontshare
-
Spin up all services:
docker compose up
-
Migrate:
goose -dir=migrations postgres [DSN] up