Skip to content

🐶 Clean Architecture REST API with Go/Echo | API for "Kinako (my beloved dog)'s LGTM Image Generator"

License

Notifications You must be signed in to change notification settings

kazuya-sakamoto/lgtm-kinako-api

Repository files navigation

LGTM Image

lgtm-kinako-api

License GoLang Echo MySQL Gormigrate

Render AWS S3 AWS CloudFront TiDB UptimeRobot

Overview

This is a service that allows you to share LGTM images featuring Kinako (my beloved dog). By clicking on an image, the corresponding Markdown code is copied, making it easy to use.

Environment Setup

  • Start the Container
$ make up
  • Add Paths
$ nano ~/.zshrc
# golang
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
  • Reload ~/.zshrc
$ source ~/.zshrc
  • Remove Unnecessary Dependencies / Add Required Dependencies
$ go mod tidy
  • Verify air and dlv Commands
$ air -v
$ dlv -h
  • Install air and dlv if Not Already Installed
$ go install github.com/cosmtrek/air@latest
$ go install github.com/go-delve/delve/cmd/dlv@latest
  • Run Migrations
$ make migration
  • Start the Application
$ make dev
  • Verify Functionality
$ curl http://localhost:8081/api/v1/albums

[{"id":107,"title":"初めてのきなこ","image":"...

Tips

  • If the Application Fails to Start
$ make down
$ make up

Additional Documentation

Access to this documentation is restricted. Please contact @Kazuya-Sakamoto to request access. 🙇‍♂️

About

🐶 Clean Architecture REST API with Go/Echo | API for "Kinako (my beloved dog)'s LGTM Image Generator"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published