content-publisher

GOV.UK Publishing Application

Github stars Tracking Chart

Content Publisher

A unified publishing application for content on GOV.UK

Nomenclature

  • Content - Some text (and related fields) a user wants to publish
  • Revision - A version of a piece of content in a particular locale
  • Edition - A revision that is in the Publishing API
  • Document - All revisions of a piece of content in a particular locale

Technical documentation

This is a Ruby on Rails application.

Dependencies

  • postgresql - provides a backing database
  • redis - used as a storage layer for asynchronous job processing
  • yarn - package manager for JavaScripts
  • imagemagick - image manipulation library

Running the application

The first time you run this application for development, enable debug and pre_release_features permissions:

bundle exec rake development_permissions

To enable them for your GOV.UK account add them to your account in Signon.

Running the test suite

yarn install
bundle exec rake

Running JavaScript tests only

Running Jasmine tests in local web browser

bundle exec rake jasmine

Running Jasmine tests in console

bundle exec rake jasmine:ci

Debugging the application

This application uses byebug for
debugging. A breakpoint can be inserted by inserting a line of
byebug into the ruby code.

As this application is run via foreman it is not easy to interact with the
debugger via the running processes. Instead the debugger should be accessed
by creating a remote debugging session with byebug and listening. This can be
done by running the following in a separate terminal window:

bundle exec byebug -R localhost:3237

which will listen for the web application. Substitute port 3237 for 3238 to
listen to the sidekiq processes.

Further documentation

Licence

MIT License

Main metrics

Overview
Name With Owneralphagov/content-publisher
Primary LanguageRuby
Program languageRuby (Language Count: 6)
Platform
License:MIT License
所有者活动
Created At2018-07-10 09:00:26
Pushed At2025-04-23 09:52:39
Last Commit At
Release Count2666
Last Release Namev401 (Posted on )
First Release Namerelease_2 (Posted on 2018-07-11 11:15:18)
用户参与
Stargazers Count33
Watchers Count56
Fork Count11
Commits Count8.3k
Has Issues Enabled
Issues Count11
Issue Open Count2
Pull Requests Count2881
Pull Requests Open Count0
Pull Requests Close Count412
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private