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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?