Skip to content

copyfun/web-renderer

 
 

Repository files navigation

Superdesk Web Renderer

Build Status Scrutinizer Code Quality Dependency Status SensioLabsInsight

WebPublisher is templates engine + articles/pages render component for Superdesk WebPublisher. Thanks to Web Renderer, templators can design themes and work with templates engine.

Documentation

Full documentation can be found here: http://web-renderer.readthedocs.org/

How to build it with docker:

Setup

Add 127.0.0.1 webrenderer.dev to /etc/hosts. Mac users use the ip of your virtualbox (e.g. boot2docker ip).

Build:

docker-compose build

Run:

docker-compose up

Updating database schema

Create database in your PostgreSQL server (it's required) manually. Remember to put database config into parameters.yml.

Then execute the following commands in terminal:

php app/console doctrine:schema:update --force
php app/console doctrine:phpcr:repository:init

Testing

For unit tests use PHPSpec tests, for functional tests use PHPUnit and Behat for integration.

How to run tests?

php bin/phpunit -c app/ # PHPUnit
php bin/phpspec run # PHPSpec

To see current code tests coverage run:

php bin/phpspec run --config=spec/phpspec-cov-html.yml
php bin/phpunit -c app/ --coverage-text

Superdesk Web Renderer is possible thanks to other Sourcefabric initiatives:

About

Superdesk Web renderer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 73.6%
  • ApacheConf 15.3%
  • HTML 5.3%
  • Shell 5.2%
  • Other 0.6%