Skip to content

zvin/vandal

Repository files navigation

Vandal

http://eatponies.com source code

Install dependencies

  • mandatory:

    apt-get install libcairo2-dev
    go get github.com/gorilla/websocket github.com/ugorji/go/codec github.com/zvin/gocairo
    go install github.com/gorilla/websocket github.com/ugorji/go/codec github.com/zvin/gocairo
  • optional (for javascript minification):

    wget http://dl.google.com/closure-compiler/compiler-latest.zip
    unzip compiler-latest.zip

Build

  • put the domain you are going to use into the DOMAIN file (defaults to localhost)

  • put the http port you are going to use into the HTTP_PORT file (defaults to 8000)

  • put the https port you are going to use into the HTTPS_PORT file (defaults to 4430)

  • set the content of the DEBUG file to 'true' or 'false' (true if you want no minification)

  • make:

    make

Run the server

  • generate a certificate and a key for https

    openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout build/key -out build/cert
  • run the server

    cd build
    ./vandal -p 8000 -sp 4430 -cert /path/to/certfile -key /path/to/keyfile -host localhost -f
  • open your browser at http://localhost:8000

  • -f means print the logs on stdout

  • -p HTTP_PORT

  • -sp HTTPS_PORT (https is needed to be able to draw over https websites)

  • -cert defaults to "cert"

  • -key defaults to "key"

  • -host defaults to localhost

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program, in the file "COPYING". If not, see http://www.gnu.org/licenses/.

js/colorpicker.js is available under the MIT LICENSE.

js/msgpack.codec.js is available under the MIT LICENSE.

static/LifeSavers-Regular.woff is available under the SIL Open Font License (OFL)