All Alphaville articles are now rendered as article content on FT.com
Renders the pages of alphaville blogs: Homepage, article page.
In order to run the service locally, you will either need to connect to the TEST mongodb on heroku MLab, or set up the database locally. If you have to make changes that affects the database as well, you should follow the below steps to set up the database locally.
Origami build tools https://github.com/Financial-Times/origami-build-tools#usage
npm install -g origami-build-tools
Install prerequisites of origami build tools:
obt install
Install gulp globally:
npm install -g gulp
Run the following:
You'll need to create environment variable
The fastest way to do this is to run the following assuming your are logged in into heroku
heroku config -s >> .env --app av2-blogs-prod
Now run the initial npm install on the app
npm install
This will not just install npm modules, but automatically run bower install and gulp build as well.
The build integrates origami build tools, so before this please make sure you have all the prerequisites needed for it: https://github.com/Financial-Times/origami-build-tools#usage
Run the following:
heroku local
In order you to be able to access articles without getting the barrier, you will need 2 things:
- Set up a URL in the hosts file that points
local.ft.com
to the localhost - Add
SKIP_AUTH=true
environment variable (this is needed because running the app locally there's no fastly service in front of the app to set the Decision header from the Access service).
If you'd like to use other alphaville services locally with the blogs app (alphaville-es-interface-service), then you'll need to change their relevant environment variable, and change the URL and the relevant key to point to the local app you've set up:
AV_ES_SERVICE_KEY
andAV_ES_SERVICE_URL
for alphaville-es-interface-service