This repository has been archived by the owner. It is now read-only.
App that mimics the content-store but returns random content
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
spec
.gitignore
.rspec
.rubocop.yml
.ruby-version
Gemfile
Gemfile.lock
Procfile
README.md
server.rb

README.md

Random content store

Sinatra that mimics the content-store but returns random content. Uses the govuk_schemas gem.

Run locally

bundle install
bundle exec ruby server.rb

Visit the site:

http://localhost:4567/

Deployment

This project is hosted on Heroku:

https://govuk-random-content-store.herokuapp.com/content/detailed_guide

We auto-deploy the master branch to this application so merging a PR will be enough to release.

Use with frontend app

You can run GOV.UK frontend apps with this app as the content-store:

cd ~/govuk/government-frontend
GOVUK_WEBSITE_ROOT=https://www.gov.uk \
PLEK_SERVICE_STATIC_URI=assets.digital.cabinet-office.gov.uk \
PLEK_SERVICE_CONTENT_STORE_URI=https://govuk-random-content-store.herokuapp.com ./startup.sh

Now visit:

http://government-frontend.dev.gov.uk/detailed_guide

Examples