content-publisher

GOV.UK Publishing Application

Github星跟踪图

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

主要指标

概览
名称与所有者alphagov/content-publisher
主编程语言Ruby
编程语言Ruby (语言数: 6)
平台
许可证MIT License
所有者活动
创建于2018-07-10 09:00:26
推送于2025-05-08 19:23:13
最后一次提交
发布数2667
最新版本名称v403 (发布于 )
第一版名称release_2 (发布于 2018-07-11 11:15:18)
用户参与
星数33
关注者数55
派生数11
提交数8.3k
已启用问题?
问题数11
打开的问题数2
拉请求数2882
打开的拉请求数1
关闭的拉请求数412
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?