This project is a library management system twritten in go using the MVC architecture.
- Separate admin and client portals
- Manage the book catalog (list, update, add/remove books).
- Approve/deny borrow and return requests from clients.
- Approve/deny requests from users seeking admin privileges.
- View the list of available books.
- Request borrowing and returning of books from the admin.
- View their transaction history.
- Clone the repository.
- Run
mv .envsample .env
and modify the .env file as you wish.
- Set the DB_HOST variable in .env file to
mysqldb
. - Start the docker containers using
docker compose up
and connect atlocalhost:8080
.
- Install golang, and golang migrate and setup mysql server on your device.
- run
./run.sh
- Connect to the website at
libralynx.org
.
If you change DB_NAME in .env file then change init.sql accordingly. The first user is made admin by default.