2014-05-20 16:25:29 +02:00
# wallabag v2 [](https://travis-ci.org/wallabag/wallabag)
2013-11-21 09:59:19 +01:00
2014-05-20 16:25:29 +02:00
This is a Proof of Concept of wallabag v2 using the PHP micro-framework [Silex ](http://silex.sensiolabs.org ).
2013-11-21 09:59:19 +01:00
# Installation
Get Composer and install Silex:
2013-11-21 10:00:35 +01:00
curl -s http://getcomposer.org/installer | php
php composer.phar install
2013-11-21 09:59:19 +01:00
Then configure your webserver to point to the `web/` directory. Some documentation is available on the [Silex documentation page ](http://silex.sensiolabs.org/doc/web_servers.html ).
2014-05-20 16:25:29 +02:00
If you are using PHP 5.4 you can run wallabag v2 by using the embedded webserver:
2013-11-21 09:59:19 +01:00
2013-11-21 10:00:35 +01:00
php -S localhost:8080 -t web web/index.php
2013-11-21 09:59:19 +01:00
2014-05-20 16:25:29 +02:00
wallabag should now be running at [http://localhost:8080 ](http://localhost:8080 ).
2013-11-21 20:26:22 +01:00
2013-11-21 22:44:41 +01:00
Then you should initialize your database by running:
./console db:create
2013-11-21 20:26:22 +01:00
# Test
2013-11-22 23:54:20 +01:00
For unit tests (using Atoum) use:
2013-11-21 20:26:22 +01:00
./console tests:unit
2013-11-22 23:54:20 +01:00
For functional tests you'll need phpunit:
phpunit