kuredopogo

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

README

KuReDoPoGo

Kubernetes Redis Docker Postgres Golang—KuReDoPoGo is a backend API service built using Golang and Gin Framework. It uses Redis for rate limiting and Postgres for storing data. It is deployed on Kubernetes. For local development, it uses Docker Compose.

Using and Developing

Running Locally

Prerequisites
  • Go
  • Postgres (local, remote, or Docker instance)
  • Redis (local, remote, or Docker instance)
  1. Copy the .env.example file to .env and update the values like postgres connection string, redis connection string, and other values as needed. You can use the following command to copy the file:
cp .env.example .env
  1. Install the Go dependencies and run the application:
go mod download
go run main.go

You can access the application at http://localhost:8080.

Running with Docker Compose

Prerequisites
  • Docker
  • Docker Compose
  1. Run the following command to start the application:
docker compose up

If you're using the latest version of Docker Compose, you can leverage the Compose Watch feature. This will automatically rebuild the application when code changes are made:

docker compose up --watch
docker compose up --build --watch

You can access the application at http://localhost:8080 and Postgres at http://localhost:5432.

License

This project is licensed under the GNU General Public License v3.0.

Security

If you discover a security vulnerability within this project, please refer to the security policy for more information.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL