Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 753 Bytes

File metadata and controls

27 lines (23 loc) · 753 Bytes

About The Project

This is a project template for golang fiber microservice with hexagonal architect support GORM and aws lambda serverless

Getting Started

Installation

  1. https://github.com/gofiber/fiber
  2. https://github.com/swaggo/swag
  3. https://github.com/golang-migrate/migrate
  4. https://github.com/go-gorm/gorm
  5. https://github.com/awslabs/aws-lambda-go-api-proxy

Usage

  1. Generate docs
  • swag init
  1. Start mysql & migrates data
  • make docker.mysql
  • make migrate.up
  1. Start server
  • go run main.go
  1. (Optinal) build for lambda
  • Modify main.go uncomment lambda.Start(app.Handler) and comment app.StartServer()
  • make docker.fiber.build