Project very basic for Library using Domain Driven Design (DDD) Architecture
This project has 2 user access :
- Admin
- User
- can access login endpoint:
/auth/login
.emai: admin@mail.com and password: Admin123
- can add book
- can acces user transaction history
- can acces list of books
- can access login endpoint:
/auth/login
. - can access register endpoint:
/auth/register
. - can acces list of books
- can borrow book
- can return book
- clone the project
- copy file .env-example to .env
$ cp ./config/config_template.yaml ./config/config.yaml
- run the sql in
db.sql
file to your database - install modules
$ go mod tidy
#or
$ go mod download
- run the application into development mode
$ make dev
# run build command
$ make build
# execute
$ ./target/library-api
TODO:
- migration