4 Developing at the project
Elvis de Freitas Souza edited this page 2017-07-14 15:52:45 -03:00

Developing with docker

Setup the environment

$ docker-compose -d gocompiler-docker-dns-proxy up
$ docker exec -it gocompiler bash

Running the application

go run src/dns.go

Running unit tests

$ go test -cover=false ./src/github.com/mageddo/dns-proxy-server/.../

Developing at Intellij

  • Install Golang plugin

  • Import the project at File -> New -> Project from existing sources

  • Make solve dependencies

    • File -> Settings -> Languages & Frameworks -> Go -> Go Libraries
    • At Project Libraries section add the project folder
  • Running: At Intellij you will want to make some customizes like these:

    • Custom port to evict conflicts and don't need root privleges
    • Custom config path
    • Don't set it up at the default DNS