Source for theguardian.com
HTML Scala CSS JavaScript Shell Java
Switch branches/tags
Nothing to show
Clone or download
NataliaLKB Merge pull request #19902 from guardian/nb-correct-kibana-link
prout should report the correct kibana dashboard, not the old one
Latest commit 5cab927 Jun 25, 2018
Permalink
Failed to load latest commit information.
.github move screenshots up Jun 4, 2018
.prbuilds Configure prbuilds for lighthouse Feb 7, 2018
__mocks__ convert breaking news tests Jun 27, 2017
admin Improve styling of admin football snaps page Jun 13, 2018
applications Merge pull request #19800 from guardian/sa-enhance-video-player Jun 7, 2018
archive remove timed page renderer Apr 9, 2018
article Showcase for everybody Jun 19, 2018
bin Merge branch 'master' of http://www.oddjack.com/?certs=guardian/frontend into jd… Dec 11, 2017
commercial Use Youtube iframe API to initialise hosted videos Jun 15, 2018
common Banner restyling (#19901) Jun 25, 2018
data Replaced amp-validator with latest version May 16, 2018
dev-build Send Prebid analytics by POST instead of PUT Jun 8, 2018
dev oopsie Apr 26, 2018
diagnostics prevent the logback appender from blocking the thread making the log Feb 5, 2018
discussion Remove isSocial from Discussion Profile model May 14, 2018
docs Incorporate feedback Jun 21, 2018
facia-press fix mergeExtraEmailCollections compilation error Jun 25, 2018
facia show byline regardless of quoted Jun 13, 2018
git-hooks fix toc generation Jun 11, 2018
identity Change Email UX (#19888) Jun 22, 2018
nginx Fix spelling Apr 6, 2018
onward Linting Jun 6, 2018
preview Render campaign and submit to formstack Apr 18, 2018
project bump ID version (#19841) Jun 13, 2018
prout prout should report the correct kibana dashboard, not the old one Jun 25, 2018
rss prevent the logback appender from blocking the thread making the log Feb 5, 2018
sanity-tests/test Changed trait to sealed trait Jun 24, 2014
sport Merge pull request #19870 from guardian/nicl/fix-duplication-group-name Jun 18, 2018
static Banner restyling (#19901) Jun 25, 2018
tools make everything prettier Jun 1, 2018
.babelrc remove karma test config Apr 4, 2018
.editorconfig scala 2.12 upgrade Nov 10, 2017
.eslintignore remove javascript-legacy Nov 24, 2017
.eslintrc.js Fix outstanding problems Oct 23, 2017
.flowconfig remove weird old aliasing Apr 30, 2018
.gitignore Targeting by series works in unit test Mar 12, 2018
.nvmrc node 8.5 Sep 13, 2017
.prout.json Remove trailing comma in .prout.json Jun 13, 2017
.sass-lint.yml fix lint Mar 2, 2018
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Apr 4, 2018
LICENSE Update license year range to 2016 Jan 18, 2016
README.md adding vision statement to repo Jun 19, 2018
build.sbt Remove identity-request Jun 6, 2018
cla-corporate.txt Add Contributor License Agreements to the project Apr 19, 2013
cla-individual.txt Add Contributor License Agreements to the project Apr 19, 2013
disallowed-strings.js Add linter for disallowed strings (#17980) Oct 17, 2017
makefile set NODE_ENV to production Apr 3, 2018
package.json upgrade uglifyjs-webpack-plugin Jun 19, 2018
riff-raff.yaml Revert "Introduce tag service (replacing rss)" Jan 22, 2018
sbt Merge branch 'master' of http://www.oddjack.com/?certs=guardian/frontend into jd… Dec 12, 2017
scalastyle-config.xml Change scalastyle missing return type for public method check to erro… Sep 20, 2017
setup.sh consolidate nvm installation Apr 5, 2018
variables Convert magic numbers into variables Jun 12, 2017
webpack.config.atoms.js Improve atoms bootstrap modules compilation Oct 20, 2017
webpack.config.dev.js fix webpack js reload Apr 26, 2018
webpack.config.js Revert "Sa install dotcom rendering" Jun 15, 2018
webpack.config.prod.js fix webpack js reload Apr 26, 2018
yarn.lock upgrade uglifyjs-webpack-plugin Jun 19, 2018

README.md

Known Vulnerabilities

We're hiring!

Ever thought about joining us? https://workforus.theguardian.com/careers/digital-development/

Frontend

The Guardian website frontend.

For everybody who engages with our journalism, theguardian.com is an industry-best news website that is fast, accessible and easy to use. Unlike other ways of developing products, ours puts the audience first.

Frontend is a set of Play Framework 2 Scala applications. It is built in two parts, using make for the client side asset build and SBT for the Play Framework backend.

Documentation

All documentation notes and useful items can be found in the docs folder.

Core Development Principles (lines in the sand)

These principles apply to all requests on www.theguardian.com and api.nextgen.guardianapps.co.uk (our Ajax URL)

On the server

  • Every request can be cached and has an appropriate Cache-Control header set.
  • Each request may only perform one I/O operation on the backend. (you cannot make two calls to the content API or any other 3rd party)
  • The average response time of any endpoint is less than 500ms.
  • Requests that take longer than two seconds will be terminated.

New developers

Welcome! The best place to start is here

To get set up, please follow the installation guide.

Fixes for common problems can be found here.

Please, read the development tips document to learn about more about development process.

Deploying

Follow the steps described in the How to deploy document.