Skip to content

guardian/memsub-promotions

Repository files navigation

Subscription promotions tool

URLs

Note - you need to be in the 'Subscriptions Promotion tool' google group to access these urls, otherwise you will get a redirect loop.

CODE

PROD

DEV

Running

  1. Download our private keys from the gu-promotions-tool-private S3 bucket. If you have the AWS CLI set up you can run:

    aws s3 cp s3://gu-reader-revenue-private/membership/promotions-tool/DEV/memsub-promotions-keys.conf /etc/gu  --profile membership
    
  2. Install the frontend dependencies

    cd frontend
    yarn install
    
  3. Run ./devrun and navigate to https://promo.thegulocal.com

OR

sbt devrun
cd frontend; yarn devrun

Initial Setup

NGinx

  1. cd nginx

  2. Install dependencies brew bundle

  3. Run ./setup.sh

  4. Go to project root

  5. Add the following to your hosts file in /etc/hosts

    127.0.0.1   promo.thegulocal.com
    
  6. Change the ownership of the 'gu' directory under 'etc' to current user. $ sudo -i chown -R {username} /etc/gu

  7. Setup AWS credentials with Janus.

    In ~/.aws/config add the following:

    [default]
    region = eu-west-1
    

Lambdas

See the lambdas/ folder

About

Membership/Subscription promotion editing tool

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published