GOV.UK Forms Product Pages consist of the main product page content used for onboarding new users of GOV.UK Forms, and its supporting pages (for example, the accessibility statement and privacy policy). It is implemented as a Middleman app.
To run the project you will need to install:
- Ruby - we use version 3 of Ruby. Before running the project, double check the [.ruby-version] file to see the exact version.
- Node.js - the frontend build requires Node.js. We use Node 16 LTS versions.
- Yarn - we use Yarn rather than
npm
to install and run the frontend.
We recommend using a version manager to install and manage these, such as:
To run the project:
# 1. Install the Ruby bundle
bundle install
# 2. Install yarn dependencies
yarn
# Then either:
# 3a. Run the 'dev' task to start a local server for development
yarn run dev
# or:
# 3b: Run the 'build' task to generate the static site for deployment
yarn run build
Raise a Github issue if you need support.
We welcome contributions - please read CONTRIBUTING.md and the alphagov Code of Conduct before contributing.
We use the MIT License.
本專案為數位部開放原始碼軟體中文化專案項目之一,其中文化與專案應用可參考 Wiki。