Golang web-app to help library management.
- Gofiber
- MySQL
- HTML
- CSS
- Javascript
/user/dashboard
/user/bookList
/admin/dashboard
/admin/userList
/admin/addUser
/admin/deleteUser
/librarian/dashboard
/librarian/bookList
/librarian/userList
/librarian/addBook
/librarian/deleteBook
/librarian/borrowBook
/librarian/returnBook
/signupHandler
/loginHandler
/getUsers
/getUserById/:id
/addUser
/deleteUser
/getBooks
/getBookById/:id
/getBookByTitle/:title
/addBook
/deleteBook
/borrowBook
/returnBook
You can do so by visiting [https://go.dev/doc/install]
Run this following command : git clone https://github.com/chaaaeeee/PERPUSTAKON.git
Change the directory cd PERPUSTAKON
then download it's dependencies go mod download
Create .env file touch .env
then set the variables using this format below
SECRET=secret_key
DRIVER=driver
USER=username
PASSWORD=password
PROTOCOL=protocol
PATH=sock_path
DBNAME=dbname
Run the code by executing
go run *.go