bbc/blogs-frontend

Name: blogs-frontend

Owner: BBC

Description: V5 of /blogs

Created: 2017-10-31 11:37:43.0

Updated: 2018-05-01 19:08:10.0

Pushed: 2018-03-27 14:13:50.0

Homepage:

Size: 631

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Blogs

Blogs v5. Hosted in the Cloud.

How to install

To run the Blogs v5 application locally, you'll need an up-to-date programmes-cloud-sandbox.

Clone the repository into your workspace

git@github.com:bbc/blogs-frontend.git

Install dependencies

composer install

When you first run this command, you'll be prompted to provide values for the parameters.yaml file. The defaults are fine, but you may need to obtain an API key for the comments API.

Install Static Assets

Install Yarn if you don't already have it.

Perform yarn install

To compile the static assests, it's yarn run gulp

To watch for file changes, it's yarn run watch

Tests

Blogs v5 uses PHPUnit for unit tests, and the symfony/phpunit-bridge package.

Unit tests can be run using the following command:

bin/phpunit

A test script, which runs unit tests, code sniffer and static analysis tools is located in the bin directory and is run using the following command:

bin/test
Developing

The application is available at the following endpoint when run in the sandbox:

http://sandbox.bbc.co.uk:83/blogs
License

This repository is available under the terms of the Apache 2.0 license. View the LICENSE file file for more information.

Copyright (c) 2017 BBC


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.