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
- Host: GitHub
- URL: https://github.com/danyeric123/go-bookserver
- Owner: danyeric123
- Created: 2022-05-20T17:44:08.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-26T15:58:07.000Z (almost 4 years ago)
- Last Synced: 2025-06-03T05:34:25.675Z (12 months ago)
- Topics: books, golang, gorm, gorm-orm, mux, mux-router, postgresql
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![LinkedIn][linkedin-shield]][linkedin-url]
# Go-Bookserver
Table of Contents
### 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