Skip to content
This repository has been archived by the owner on Feb 13, 2018. It is now read-only.

alphagov/govuk-random-content-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

App that mimics the content-store but returns random content

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages