A simplistic bookstore application built using the Gin Framework.
Before initiating this project, ensure that you have installed all the required dependencies on your machine.
- Go - Go is an open source programming language that makes it simple to build secure, scalable systems.
- Docker - Docker helps developers bring their ideas to life by conquering the complexity of app development.
- PostgreSQL - The World's Most Advanced Open Source Relational Database
- AWS 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:
docker run --name bookstore -p 5432:5432 -e POSTGRES_PASSWORD=******** -d postgres
Execute in Postgres DB Shell
create database bookstore;
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
.
go run main.go
Want to follow step by step, follow this tutorial: REST API Development with Gin