cd
into /src/github/effortless-technologies clone repo:
$ cd $GOPATH/src/github/effortless-technologies
$ git clone [email protected]:effortless-technologies/el-connect-api.git
cd
into project root and get dependencies:
$ cd el-connect-api
$ dep ensure
cd
into project and run:
$ cd <root/of/project>
$ go build -tags dev
$ ./elt-delivery
Now a server is runnning on localhost:1323:
$ curl http://localhost:1323
cd
into project and run:
$ cd <root/of/project>
$ go run main.go
Now build the Docker image:
docker build -t <registry/cluster/image> .
Now run the Docker image:
docker run -i -t -p 1323:1323 <registry/cluster/image>
Now a server is runnning on localhost:1323:
$ curl http://localhost:1323
To run tests locally, use the following command
go test ./... -tags dev -v