| Master | Develop |
|---|---|
The build consists of two build processes.
- Building the go backend
- Building the angular frontend
It is recommended that you build the project using the provided vagrant machine or at least a linux machine.
The backend requires golang and the protobuf compiler to be installed. Additionally the go packages github.com/golang/protobuf/protoc-gen-go and github.com/golang/protobuf/proto need to be installed.
To be able to run kontainer.ooo a postgresql instance and iptables are required.
The Vagrantfile already has these dependencies configured.
- Run
vagrant upto provision and create the virtual machine. - SSH into the vagrant machine with
vagrant ssh - Inside the vagrant machine the repository is mounted in
/var/go/src/github.com/kontainerooo/kontainer.ooo/ - Run
make beinside the directory to build the backend.
The frontend can be built independently from the backend. Required are node and npm.
Additionally the global npm module @angular/cli is required.
Please note that if you ever run npm install on your host machine then you need to run npm rebuild inside the vagrant machine if your host is not a 64bit linux.
After the first time running vagrant up please run nvm install stable and npm install -g @angular/cli
- Run
npm installinside/frontend/ - Run
make feto build the frontend - Run
npm startto serve the frontend (npm startrunsng serve --host 0.0.0.0in order to work in the vagrant machine)