All Projects → guardian → subscriptions-frontend

guardian / subscriptions-frontend

Licence: other
sites.google.com/a/guardian.co.uk/guardian-subscriptions/

Programming Languages

scala
5932 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
SCSS
7915 projects

Projects that are alternatives of or similar to subscriptions-frontend

Playbasics
Example code for my tutorial series about Play Framework 2.x
Stars: ✭ 168 (+1020%)
Mutual labels:  playframework
Play Mailer
Play mailer plugin
Stars: ✭ 243 (+1520%)
Mutual labels:  playframework
cachecontrol
Minimal HTTP cache management library in Scala
Stars: ✭ 13 (-13.33%)
Mutual labels:  playframework
Otoroshi
Lightweight api management on top of a modern http reverse proxy
Stars: ✭ 177 (+1080%)
Mutual labels:  playframework
Lagom
Reactive Microservices for the JVM
Stars: ✭ 2,590 (+17166.67%)
Mutual labels:  playframework
sbt-sass
A fork of the sbt-sass repository which seems to be abandoned.
Stars: ✭ 32 (+113.33%)
Mutual labels:  playframework
Playframework
Play Framework
Stars: ✭ 12,041 (+80173.33%)
Mutual labels:  playframework
play-java-fileupload-example
An example Play application showing custom multiform fileupload in Java
Stars: ✭ 13 (-13.33%)
Mutual labels:  playframework
Play Scala Starter Example
Play Scala Starter Template (ideal for new users!)
Stars: ✭ 238 (+1486.67%)
Mutual labels:  playframework
IDEACodeTools
Intellij IDEA plugin for some code tools
Stars: ✭ 20 (+33.33%)
Mutual labels:  playframework
Play Ws
Standalone Play WS, an async HTTP client with fluent API
Stars: ✭ 190 (+1166.67%)
Mutual labels:  playframework
Play Scala Rest Api Example
Example Play Scala application showing REST API
Stars: ✭ 227 (+1413.33%)
Mutual labels:  playframework
play-scala-compile-di-example
Example Play Project using compile time dependency injection and Play WS with ScalaTest
Stars: ✭ 37 (+146.67%)
Mutual labels:  playframework
Play Angular Require Seed
Seed Application for Playframework 2, RequireJS, WebJars, and AngularJS 1.x
Stars: ✭ 170 (+1033.33%)
Mutual labels:  playframework
play-ebean
Play Ebean module
Stars: ✭ 29 (+93.33%)
Mutual labels:  playframework
Play Java Starter Example
Play starter project in Java (ideal for new users!)
Stars: ✭ 164 (+993.33%)
Mutual labels:  playframework
play-scala-fileupload-example
An example Play application showing custom multiform fileupload in Scala
Stars: ✭ 29 (+93.33%)
Mutual labels:  playframework
sbt-play-npm
Integrate a Npm application with Play framework
Stars: ✭ 10 (-33.33%)
Mutual labels:  playframework
play-scala-tls-example
A Play application using HTTPS and WS with optional client authentication
Stars: ✭ 44 (+193.33%)
Mutual labels:  playframework
play-java-chatroom-example
Example Chatroom with Java API
Stars: ✭ 33 (+120%)
Mutual labels:  playframework

Subscriptions frontend

Nginx

Setup Nginx for identity-platform

Subscriptions depends on Nginx config and SSL certs from Identity, so you'll need to perform the Nginx setup for identity-platform first, before you do anything else.

Run: ./nginx/setup.sh and enter your password where prompted.

Setup Nginx for subscriptions-frontend

  1. Install dependencies brew bundle
  2. Run nginx/setup.sh

General Setup

  1. Get Janus credentials

  2. Go to project root

  3. Install nvm, then run nvm use.

  4. Run ./setup.sh to install project-specific client-side dependencies.

  5. Change the ownership of the 'gu' directory under 'etc' to current user. $ sudo -i chown -R {username} /etc/gu

    In ~/.aws/config add the following:

    [default]
    region = eu-west-1
    
  6. Download our private keys from the gu-reader-revenue-private S3 bucket. If you have the AWS CLI set up you can run:

    aws s3 cp s3://gu-reader-revenue-private/subscriptions/frontend/DEV/subscriptions-frontend.private.conf /etc/gu  --profile membership
    
  7. Run sbt devrun and navigate to sub.thegulocal.com

Client-side Development

By default, the setup script will hash file assets and generate a conf/assets.map file, which in turn will cause Play to render assets with their hashed path. Use the grunt compile --dev task in order to have Play to render assets without hashing them.

Then run yarn watch, to dynamically recompile assets as they get edited.

Test execution

Unit tests

sbt test

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].