basic authentication system in Go
Book Library - https://book-library-bifas.ondigitalocean.app/
Install dependencies:
Then setup MySQL and start the server using sudo systemctl start mysql
Clone the repo:
git clone https://github.com/Dami-18/library-api.git
cd library-apiCopy .env template:
cp .env.template .envAdd your mysql root password in the generated .env file
Setting up database:
chmod +x init_db.sh
bash init_db.shInstalling go dependencies:
go mod tidyBuild and run executable:
go build -o main
./main