Skip to content

flexconstructor/openvidu-tutorial

Repository files navigation

OpenViDu-tutorial

Is a GoLang port of openvidu-mvc-java application.

A secure OpenViDu sample app with a GoLang backend and a traditional MVC frontend.

How to dev

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.

Toolchain overview

The following Golang tools are used:

To have fully reproducible builds and runtime environment Docker is used.