mkloubert / simple-whiteboard

Simple whiteboard (web) application written in PHP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple-whiteboard

Simple whiteboard (web) application written in PHP.

Demo 1

Preview

This is still a working preview version in a good beta state.

Download

Download a release from here and unzip it to your webspace folder.

Install

Database

Run the mysql5.dump.sql inside the MySQL database, where the data should be stored.

Config

Edit the config.inc.php and apply your database settings there.

<?php

defined('SW_BOOTSTRAP') or die();

return array(
    'database' => array(
        'host' => 'localhost',

        'user' => 'simple_whiteboard_user',
        'password' => 'simple_whiteboard_pwd',

        'db' => 'simple_whiteboard_db',
    ),
);

The following settings are supported:

Name Description
database.db The database name.
database.host The address of the MySQL host.
database.password The database password.
database.port The custom TCP port.
database.socket The custom UNIX socket.
database.user The database user.

Folder permissions

Make the following folders writable for the application:

  • /files
  • /uploads

.htaccess

If you use Apache, you should create a .htaccess file like that:

AuthType Basic
AuthName "My Whiteboard"
AuthBasicProvider file
AuthUserFile "/etc/apache2/.htpasswd"

<RequireAny>
  Require ip 192.168.0.0/255.255.255.0
  Require valid-user
</RequireAny>

Markdown

The application uses showndown as Markdown engine with the following options:

{
    "ghCodeBlocks": true,
    "ghCompatibleHeaderId": true,
    "simplifiedAutoLink": true,
    "strikethrough": true,
    "tables": true
}

Shortcuts

Shortcut Description
CTRL + B Select Board tab.
CTRL + E Select Editor tab.
CTRL + S Save the current content of editor and show it in board tab.

Customizations

Board name

The MySQL dump inserts an initial entry in the boards table.

There you can define a custom name in the name column.

Additional boards

You can add additional boards to boards table.

To access one of these additional boards, simply use the value from id column and access them by using b query parameter in URL: https://example.com/whiteboard/?b=<ID-OF-THE-BOARD>.

CSS

The bootstrap.min.css is taken from Bootswatch. You can replace it with any of the other templates or another compatible one, like the default one from Bootstrap 3.

If you need additional customizations, you can edit custom.css file.

Support and contribute

If you like the application, you can support the project by sending a donation via PayPal to me.

To contribute, you can open an issue and/or fork this repository.

To work with the code:

  • clone this repository
  • create and change to a new branch, like git checkout -b my_new_feature
  • commit your changes to your new branch and sync it with your forked GitHub repo
  • make a pull request

About

Simple whiteboard (web) application written in PHP.

License:GNU General Public License v3.0


Languages

Language:TypeScript 48.1%Language:JavaScript 38.0%Language:CSS 10.6%Language:PHP 3.3%