It's a simple boilerplate for DDD based aplications
This boilerplate is using the following techs:
One advantage of splitting your application into layers is that you can change your edges without concern about the application core <3 Change them as you need/want
- download and build dependencies
$ make build
-
Provide a .env file as .env.example or export this environment variables
-
Run generated bin
$ ./app
- Generate a docker image
$ make build-docker
- Run it
$ docker run --env-file .env --net=host jeeo/go_api
PS: I was lazy :) using host network and envfile is just for example purpose. Run it as you want following good pratices for your environment
- Define project layers
- Adds deployment artifacts
- Unit tests example
there are few examples of unit tests for mapper and application layer =)