You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
6 years ago | |
---|---|---|
app | 6 years ago | |
assets | 6 years ago | |
templates/Handlers | 6 years ago | |
tests/Storage | 6 years ago | |
.gitignore | 6 years ago | |
LICENSE | 6 years ago | |
README.md | 6 years ago | |
composer.json | 6 years ago | |
composer.lock | 6 years ago | |
index.php | 6 years ago | |
phpunit.xml | 6 years ago | |
runUnitTest.sh | 6 years ago |
README.md
nowiki
Une série de test pour créer un wiki en markdown avec plusieurs systèmes de stockages possibles s'appuyant sur une API REST.
Installation
git clone https://github.com/daiko/nowiki.git nowiki
cd nowiki`
composer install --no-dev
Configuration
Le fichier de configuration doit se trouver dans specific/config.php
Stockage
driver : Une classe disponible dans app/Storage parameters : Les paramètres pour le driver.
- Configuration avec sqlite :
<?php
$config = array(
'storage' => array(
'driver' => 'Pdo',
'parameters' => array(
'dsn' => 'sqlite:specific/db.sqlite',
),
),
);
- Configuration avec mysql/mariadb :
<?php
$config = array(
'storage' => array(
'driver' => 'Pdo',
'parameters' => array(
'dsn' => 'mysql:dbname=nowiki;host=localhost',
'user' => 'nowiki',
'password' => 'dbpass'
),
),
);
- Configuration avec postgre :
<?php
$config = array(
'storage' => array(
'driver' => 'Pdo',
'parameters' => array(
'dsn' => 'pgsql:dbname=nowiki;host=localhost;',
'user' => 'nowiki',
'password' => 'dbpass'
),
),
);