#App Web Off-line with Database
#Install
curl -s https://getcomposer.org/installer | php
php composer.phar install
CREATE DATABASE `offline` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `offline`;
CREATE TABLE IF NOT EXISTS `notes` (
`id` int(6) NOT NULL AUTO_INCREMENT,
`note` text NOT NULL,
`updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Modify database connection parameters in index.php
php -S localhost:8888
php -S localhost:4444 -t web/