Is a GoLang port of openvidu-mvc-java application.
A secure OpenViDu sample app with a GoLang backend and a traditional MVC frontend.
You should ensure that your project is cloned into $GOPATH/src/github.com/flexconstructor/openvidu-tutorial
directory, o
therwise Golang tools may work with code incorrectly.
The simple start is:
make deps
make run
make run.goconvey
Use docker-compose
to boot up (or restart) dockerized environment for development:
make build
docker-compose up --build
# or in one command
make run
To resolve project dependencies use docker-wrapped commands from Makefile
:
make deps
# or concrete type
make deps.glide cmd=update
make deps.tools
To run tests or lint project use docker-wrapped commands from Makefile
:
make test
make lint
To format project sources use docker-wrapped command from Makefile
:
make fmt
To run GoConvey Web UI for continuous testing use docker-wrapped command from Makefile
and access it on 8080
port:
make run.goconvey
# available on http://localhost:8080/
Take a look at Makefile
for command usage details.
The following Golang tools are used:
- Glide for dependencies management.
- Go Meta Linter for code linting.
- GoConvey as testing framework.
To have fully reproducible builds and runtime environment Docker is used.