Skip to content

Dami-18/library-api

Repository files navigation

library-api

basic authentication system in Go

Deployed link

Book Library - https://book-library-bifas.ondigitalocean.app/

Local Setup

Install dependencies:

  1. Go
  2. MySQL

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-api

Copy .env template:

cp .env.template .env

Add your mysql root password in the generated .env file

Setting up database:

chmod +x init_db.sh
bash init_db.sh

Installing go dependencies:

go mod tidy

Build and run executable:

go build -o main
./main

About

book library api in Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published