server/php/basic/README.md
author rougeronj
Wed, 16 Sep 2015 17:36:46 +0200
changeset 524 904effa4b6d7
parent 444 19f0b7803aed
permissions -rw-r--r--
improve view management: - we can pass a negative view index, in this case we count from the end of the list of view - before creating/changing the view representation, we remove the previous one and reinitialize the node visibility - each time we save a view, it creates a new one at the end of the list - "restore" view loads the last view of the list

# Basic php server for Renkan

This folder provides an example of a basic server for renkan.

The data schema is very simple since there is only one table.
it has been tested on sqlite, postgresql and mysql.

All path given in this README are relative to the directory containing this README.md file.

## prerequisite

  - php 5.6
  - PDO extension with the driver of the database of your choice
  - A database access allowint the table creation

## Installation

The root for the site is the `public_html` folder.
To serve the page you can either use a webserver or the simple webserver embedded in php.

copy the `resource/config.php.tmpl` file to `resource/config.php` and complete the configuration.
If you choose to use the default sqlite database configuration, please make sure to create a `data` folder and make sure that you chosen webserver has write access to it.

To serve the page you can for example use the php build-in webserver. For this, once you have created and configured the `resource/config.php` file just type the following commands:

```shell:
$ cd public_html
$ php -S localhost:8000
```