Skip to content
The Guardian Dot Com.
HTML Scala JavaScript CSS Java Shell
Branch: master
Clone or download

Latest commit

GHaberis Merge pull request #22612 from guardian/gh-eu-ReaderRevenueRegion
setup european-union ReaderRevenueRegion for subscription banner targetting
Latest commit 60641ed May 26, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update Github PR template (to be DCR aware) Nov 12, 2019
.prbuilds Disable prbuilds exceptions for now May 2, 2019
.vscode Add VSCode workspace config Oct 9, 2018
.yarn/releases use checked in yarn version Apr 6, 2020
__mocks__ convert breaking news tests Jun 27, 2017
admin Rename switch PlistaForOutbrainAU May 4, 2020
applications Passing the atom id to the [applications] atom template May 20, 2020
archive Do not redirect because of uppercase letters used in url encoding Nov 21, 2019
article Ensure we have a schema.org NewsArticle image May 21, 2020
bin Merge branch 'master' of https://github.com/guardian/frontend into jd… Dec 11, 2017
commercial Small refactor May 14, 2020
common Add 100% audience sign in gate test (#22606) May 26, 2020
data Bump CAPI client to 17.1 (no retry of 503 errors) Mar 20, 2020
dev-build Remove reference of SoulmatesController from dev-build project May 14, 2020
dev rebuild commercial.dcr.js with watch task Mar 25, 2020
diagnostics Add rolled over counter to log file names. Sep 18, 2019
discussion Add rolled over counter to log file names. Sep 18, 2019
docs Remove soulmates from commercial README May 14, 2020
facia-press Revert "Increase container capacity" Mar 17, 2020
facia Reduce font-size for specific email header (#22509) Apr 20, 2020
git-hooks Upgrade prettier to version 1.16.4 and fix eslint and flow problems Feb 28, 2019
identity Fix Identity verification email wording (#22531) Apr 28, 2020
nginx no need to add to hosts file Jun 7, 2019
onward Update copy for content feedback May 15, 2020
preview Fix preview test Jan 20, 2020
project update identity lib to 3.205 for new newsletter May 5, 2020
prout prout should report the correct kibana dashboard, not the old one Jun 25, 2018
rss Add rolled over counter to log file names. Sep 18, 2019
sanity-tests/test Changed trait to sealed trait Jun 24, 2014
sport Merge pull request #22601 from guardian/oliver/match-report-json May 22, 2020
static Merge pull request #22612 from guardian/gh-eu-ReaderRevenueRegion May 26, 2020
tools restore installation of yarn if missing entirely Apr 6, 2020
.editorconfig scala 2.12 upgrade Nov 10, 2017
.eslintignore remove javascript-legacy Nov 24, 2017
.eslintrc.js move prettier config to package.json Apr 6, 2020
.flowconfig Add config for Flow Strict and start using it in Commercial modules Aug 4, 2018
.gitignore Pull CMP Vendorlist from the internet to generate our v ersions Aug 12, 2019
.nvmrc Bump node version to latest LTS version Sep 19, 2019
.prout.json Remove trailing comma in .prout.json Jun 13, 2017
.sass-lint.yml AMP Ad preference available everywhere Mar 8, 2019
.yarnrc use checked in yarn version Apr 6, 2020
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Apr 4, 2018
LICENSE Update LICENSE date range Jan 2, 2020
README.md NOP Mar 13, 2019
babel.config.js Back to import again; now with a webPack annotation Feb 21, 2019
build.sbt Authenticate users by calling back to identity (#21932) Oct 24, 2019
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 fix width in guardian today emails by setting width on the td and not… Sep 13, 2018
package.json Bump CMP version to 3.0.4 Apr 24, 2020
riff-raff.yaml Revert "Revert "[TEST] Try longer warmupGrace for deployments"" May 15, 2020
sbt Remove unneeded JVM option Oct 18, 2019
scalastyle-config.xml Remove scalastyle change Nov 30, 2018
setup.sh update setup script to use latest nvm Apr 9, 2019
values.md First draft of values and behaviours Aug 2, 2018
variables Convert magic numbers into variables Jun 12, 2017
webpack.config.atoms.js Remove storyquestions Oct 9, 2019
webpack.config.dcr.dev.js rebuild commercial.dcr.js with watch task Mar 25, 2020
webpack.config.dcr.js rename dotcom-rendering-commercial.js to commercial.dcr.js Mar 26, 2020
webpack.config.dcr.prod.js rebuild commercial.dcr.js with watch task Mar 25, 2020
webpack.config.dev.js fix webpack js reload Apr 26, 2018
webpack.config.js remove config for webpack dcr Mar 17, 2020
webpack.config.prod.js reset bundleAnalyzer flag Mar 17, 2020
yarn.lock Bump CMP version to 3.0.4 Apr 24, 2020

README.md

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.

You can’t perform that action at this time.