goilerplate

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 2 Imported by: 0

README ΒΆ

Goilerplate

For the perfect structure. πŸ”₯πŸ”₯πŸ”₯

Contents

Implemented Features

  • Routing - Gin Web Framework ----------------------------πŸ“š :octocat:

  • CLI - Cobra -------------------------------------------------πŸ“š :octocat:

  • Dependency Injection - Fx --------------------------------πŸ“š :octocat:

  • Environment - Viper ---------------------------------------:octocat:

  • Logging - Zap ----------------------------------------------:octocat:

  • PostgreSQL - GORM ---------------------------------------πŸ“š :octocat:

  • Redis - Go-Redis -------------------------------------------πŸ“š :octocat:

  • DB Viewer - pgAdmin4 (Web) -----------------------------🐳

  • Authentication - JWT (Access + refresh) ------------------:octocat:

Kubernetes

api.yml
  • Deployment
  • Service
postgres.yml
  • Deployment
  • ConfigMap
  • Service
  • PersistentVolume
  • PersistentVolumeClaim
pgadmin4.yml
  • Deployment
  • ConfigMap
  • Service
redis.yml
  • Deployment
  • Service
  • PersistentVolume
  • PersistentVolumeClaim

Quick start

Docker-Compose Infra
  • Make sure you have docker installed.
  • Copy /env/stage.env to .env
  • Run docker-compose up -d
    • API Host: localhost:5000
      • [POST] auth/signup
      • [POST] auth/signin
      • [GET] user/info
    • DB Viewer Host: localhost:8080
Kubernetes Infra
  • Make sure you have kubectl(Kubernetes) installed.
  • Run kubectl apply -f .\k8s\
    • API Host: localhost:32000
      • [POST] auth/signup
      • [POST] auth/signin
      • [GET] user/info
    • DB Viewer Host: localhost:30080

Auth API (Postman Tool)

- SignUp

auth/signup

- SignIn

auth/signin access token refresh token

- User Info

refresh token

Documentation ΒΆ

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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