The following tools or applications are required to develop the web client:
It does not matter which IDE you use,
you could even use a command line text editor for developing.
For having a test environment you require an installation of PHP 5 or grater.
You could just download PHP from here.
Note:
php.exe
must be accessible via the command line.
This means you'll have to add the bin
folder to your PATH
variable.
For building and serving you require nodejs
grater than 8.
Nodejs is easily downloadable from here.
Ensure you've added node.exe
to the environment path!
Normally NPM already comes with the NodeJS installer.
So you don't really have to worry about it.
NPM min 6.X is required to develop this project.
With NPM you could easily download all required dependencies by just typing npm install
.
IMPORTANT: NPM must be available within the PATH environment variable!
For using the .sh
build scripts you require Git Bash.
A minimum of 4.2 is recommend, but in general every modern version should work.
To clone the WebClient simply use:
git clone https://github.com/TeaSpeak/TeaWeb.git
After closing the project you've to update the submodules.
Simply execute:
git submodule update --init
TeaWeb uses the Opus audio codec. Because almost no browser supports it out of the box
we've to implement our own de/encoder. For this we're using emscripten
to compile the codec.
Because this is a quite time consuming task we already offer prebuild javascript and wasm files.
So we just need to download them. Just execute the download_compiled_files.sh
shell script within the asm
folder.
./asm/download_compiled_files.sh
To download all required packages simply type:
npm install
Before you could start ahead with developing you've to compile everything.
Just execute the web_build.sh
script:
./scripts/web_build.sh development
To start the development environment which automatically compiles all your changed
scripts and style sheets you simply have to execute:
npm start web
This will also spin up a temporary web server where you could test out your newest changes.
The server will by default listen on http://localhost:8081
Now you're ready to start ahead and implement your own great ideas.