2012-09-08 03:02:21 +08:00
|
|
|
BBB-HTML5-Client
|
|
|
|
================
|
|
|
|
|
2013-09-16 05:10:57 +08:00
|
|
|
# Development
|
2012-09-08 03:02:21 +08:00
|
|
|
|
2013-09-16 05:10:57 +08:00
|
|
|
## Setting up the environment
|
|
|
|
|
|
|
|
### 1. Install [Node.js](http://www.nodejs.org)
|
|
|
|
|
|
|
|
Here's a quick how-to for installing it from source code (replace `X.X.X` by the required node version that you can
|
|
|
|
find on [`package.json`](https://github.com/bigbluebutton/bigbluebutton/blob/html5-bridge/labs/bbb-html5-client/package.json)):
|
|
|
|
|
|
|
|
```bash
|
|
|
|
wget http://nodejs.org/dist/vX.X.X/node-vX.X.X.tar.gz
|
|
|
|
tar -xvf node-vX.X.X.tar.gz
|
|
|
|
cd node-vX.X.X/
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
sudo make install
|
2012-09-08 03:02:21 +08:00
|
|
|
```
|
2013-09-16 05:10:57 +08:00
|
|
|
|
|
|
|
### 2. Install node dependencies
|
|
|
|
|
|
|
|
```bash
|
2012-09-08 03:02:21 +08:00
|
|
|
cd bbb-html5-client
|
|
|
|
npm install
|
|
|
|
```
|
|
|
|
|
2013-09-16 05:10:57 +08:00
|
|
|
### 3. Clean Redis database
|
2012-09-08 03:02:21 +08:00
|
|
|
|
2013-09-16 05:10:57 +08:00
|
|
|
```bash
|
|
|
|
redis-cli flushdb
|
2012-09-08 03:02:21 +08:00
|
|
|
```
|
2013-09-16 05:10:57 +08:00
|
|
|
|
|
|
|
### 4. Do a clean restart of BigBlueButton
|
|
|
|
|
|
|
|
```bash
|
2012-12-12 05:34:58 +08:00
|
|
|
bbb-conf --clean
|
2012-09-08 03:02:21 +08:00
|
|
|
```
|
|
|
|
|
2013-09-16 05:10:57 +08:00
|
|
|
### 5. Run the BBB server
|
|
|
|
|
|
|
|
```bash
|
2012-09-08 03:02:21 +08:00
|
|
|
cd bbb-html5-client
|
|
|
|
node app.js
|
|
|
|
```
|
2013-09-16 05:10:57 +08:00
|
|
|
|
|
|
|
## Generating the documentation
|
|
|
|
|
2013-10-29 03:54:51 +08:00
|
|
|
This application uses [codo](https://github.com/netzpirat/codo/) to generate HTML pages with the documentation
|
|
|
|
for the HTML5 client and server. This documentation is targeted for developers.
|
2013-09-16 05:10:57 +08:00
|
|
|
|
|
|
|
To generate the documentation pages, use:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cake docs
|
|
|
|
```
|
|
|
|
|
|
|
|
The files will be output to the folder `docs/`.
|
2013-10-29 03:54:51 +08:00
|
|
|
|
|
|
|
## Testing
|
|
|
|
|
|
|
|
Run:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cake test
|
|
|
|
```
|
|
|
|
|
|
|
|
To run tests for a single file:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cake -f test/lib/modules-test.coffee test
|
|
|
|
```
|
|
|
|
|
|
|
|
To stop immediately in case a test fails:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cake -b test
|
|
|
|
```
|