Skip to content

Here is an outline for designing a backend service for a URL shortener using Go and the Hexagonal Architecture, with Domain-Driven Design (DDD) principles

License

Notifications You must be signed in to change notification settings

alipourhabibi/urlshortener

Repository files navigation

URL Shortener

Here is an outline for designing a backend service for a URL shortener using Go and the Hexagonal Architecture, with Domain-Driven Design (DDD) principles

How to run

$ go test ./...
$ go build -o shortener .
$ ./shortener migrate -- --config CONFIGFILE.yaml
$ ./shortener run -- --config CONFIGFILE.yaml

docker:

$ docker-compose up
$ docker exec -it base sh
$ ./shortener migrate

and you are ready to go

Featurs:

  • Postgres for saving urls
  • Redis for caching and JWT
  • Docker and Docker compose
  • Hexagon Architecture
  • DDD Principles
  • Tests

About

Here is an outline for designing a backend service for a URL shortener using Go and the Hexagonal Architecture, with Domain-Driven Design (DDD) principles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published