PERPUSTAKON
Fullstack Go Web-App for library management
Install / Use
/learn @dosedaf/PERPUSTAKONREADME
PERPUSTAKON
Golang web-app to help library management.
Tech Stack
Backend :
- Gofiber
- MySQL
Frontend :
- HTML
- CSS
- Javascript
Overview
Endpoints
Frontend
/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
API
/signupHandler/loginHandler/getUsers/getUserById/:id/addUser/deleteUser/getBooks/getBookById/:id/getBookByTitle/:title/addBook/deleteBook/borrowBook/returnBook
How to run
Install Go Programming Language
You can do so by visiting [https://go.dev/doc/install]
Clone this repository
Run this following command : git clone https://github.com/chaaaeeee/PERPUSTAKON.git
Download the dependencies
Change the directory cd PERPUSTAKON
then download it's dependencies go mod download
Create and set .env file
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
All Set!
Run the code by executing
go run *.go
