Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mukulmantosh/go-gin-bookstore
Crafted with the Gin Framework, this minimalist bookstore application offers streamlined functionality.
https://github.com/mukulmantosh/go-gin-bookstore
aws gin golang postgres
Last synced: 10 days ago
JSON representation
Crafted with the Gin Framework, this minimalist bookstore application offers streamlined functionality.
- Host: GitHub
- URL: https://github.com/mukulmantosh/go-gin-bookstore
- Owner: mukulmantosh
- Created: 2024-02-10T09:46:05.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-05-21T09:58:05.000Z (7 months ago)
- Last Synced: 2024-12-09T03:49:54.110Z (17 days ago)
- Topics: aws, gin, golang, postgres
- Language: Go
- Homepage: https://www.jetbrains.com/guide/go/tutorials/bookstore_rest_api/
- Size: 252 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BookStore
A simplistic bookstore application built using the Gin Framework.
![terminal](./misc/images/background.png)
### Prerequisites
Before initiating this project, ensure that you have installed all the required dependencies on your machine.
### Software Installation- [x] [Go](https://go.dev/) - Go is an open source programming language that makes it simple to build secure, scalable systems.
- [x] [Docker](https://www.docker.com/) - Docker helps developers bring their ideas to life by conquering the complexity of app development.
- [x] [PostgreSQL](https://www.postgresql.org/) - The World's Most Advanced Open Source Relational Database
- [x] [AWS CLI](https://aws.amazon.com/cli/) - The AWS Command Line Interface (CLI) is a unified tool to manage AWS services directly from the command line.For running Postgres locally using Docker, run the following command:
```bash
docker run --name bookstore -p 5432:5432 -e POSTGRES_PASSWORD=******** -d postgres
```Execute in Postgres DB Shell
```sql
create database bookstore;
```### Environment Variables
Before initiating the application, ensure that you have configured the required environment variables.
```
- DB_HOST
- DB_USERNAME
- DB_PASSWORD
- DB_NAME
- DB_PORT
- S3_BUCKET
```We will access AWS resources such as Amazon S3. Therefore, ensure you configure your AWS CLI with both the `AWS Access Key ID` and `Secret Access Key`.
### Application Startup
#### Running App
```bash
go run main.go
```### Blog
Want to follow step by step, follow this tutorial: [REST API Development with Gin](https://www.jetbrains.com/guide/go/tutorials/bookstore_rest_api/)