Skip to content

mountolive/back-blog-go

Repository files navigation

My personal blog's backend

It's intended to have a "microservices" layout

Overkill is my business, my business is good... But loosely following a hexagonal architecture

Not intended to be a simple and elegant solution... I'm just using this as an excuse for testing out different transports and get in touch with cumbersome ops

TODO

  • A huge one: explain the architecture...
  • Another huge one: code quality is frankly crappy at some layers -> I need to rework some stuff a bit.

CARGO HEADS-UP

If using ssh insteadOf for global .gitconfig, make sure to:

eval `ssh-agent -s`
ssh-add

Requirements

  • Go (>1.15)
  • Rust (>1.54)
  • Protoc (sudo apt install -y protobuf-compiler, if using apt)

Alternative (nix <3)!

  • Install nix
  • Install direnv
  • Run (if using bash, follow the linked source if not):
eval "$(direnv hook bash)"

(add this to your .bashrc)

  • Run:
echo "use nix" > .envrc && direnv allow

Off to go