subscriptions-frontend
subscriptions-frontend copied to clipboard
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
- Install dependencies
brew bundle - Run
nginx/setup.sh
General Setup
-
Get Janus credentials
-
Go to project root
-
Install nvm, then run
nvm use. -
Run
./setup.shto install project-specific client-side dependencies. -
Change the ownership of the 'gu' directory under 'etc' to current user.
$ sudo -i chown -R {username} /etc/guIn
~/.aws/configadd the following:[default] region = eu-west-1 -
Download our private keys from the
gu-reader-revenue-privateS3 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 -
Run
sbt devrunand navigate tosub.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