Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vicradon/libraryapi
A simple library API built with Gin
https://github.com/vicradon/libraryapi
Last synced: 25 days ago
JSON representation
A simple library API built with Gin
- Host: GitHub
- URL: https://github.com/vicradon/libraryapi
- Owner: vicradon
- Created: 2024-10-28T08:20:18.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-28T08:30:57.000Z (2 months ago)
- Last Synced: 2024-10-28T10:18:00.780Z (2 months ago)
- Language: Go
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# libraryapi
A simple library API built with Gin## Prrequisites
You need Go installed locally to run this project.## Setting Up
You can set up this API by first cloning the project, building it, then running the built file. Here are steps.### Step 1: Clone thr project and change directory into it
```sh
git clone https://github.com/vicradon/libraryapi.git
cd libraryapi
```### Step 2: Create the .env file for the project
```sh
cp .env.example .env
```### Step 3: Build and run the project
```sh
go build -o libraryapi
./libraryapi
```## Running Tests
You can run the included tests using the command below:
```sh
go test -v ./tests/*
```## API Docs
You can view thr docs for this API [here](https://library.osinachi.me/swagger/index.html)