An open API service indexing awesome lists of open source software.

https://github.com/danyeric123/go-bookserver

A simple Golang server using GORM, Mux, and Postgres
https://github.com/danyeric123/go-bookserver

books golang gorm gorm-orm mux mux-router postgresql

Last synced: 4 months ago
JSON representation

A simple Golang server using GORM, Mux, and Postgres

Awesome Lists containing this project

README

          

[![LinkedIn][linkedin-shield]][linkedin-url]
# Go-Bookserver

Table of Contents



  1. About The Project



  2. Getting Started


  3. Roadmap

### About The Project
I am trying to practice creating backend services in Golang so I took the idea of writing a book server from [freeCodeCamp.org's example](https://github.com/AkhilSharma90/Golang-MySQL-CRUD-Bookstore-Management-API). I made major tweaks to it, albeit it started out the same.
I hope to continually add to this and extend the book server's functionality

#### Built With


### Description
A simple Golang server for books where you can create, retrieve, update, and delete books.

# Getting Started
1. Clone the repo
```sh
git clone https://github.com/danyeric123/go-bookserver.git
```
2. Create a `.env` file with the following variables:
```
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=postgres
```
4. Run the docker containers
```bash
docker compose up
```

[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/in/david-nagarpowers