Skip to content

Latest commit

 

History

History
49 lines (41 loc) · 1.32 KB

README.md

File metadata and controls

49 lines (41 loc) · 1.32 KB

GovUk Wizard Prototype

A generic 'Survey', 'Wizard' or 'Questionnaire' using the GovUK toolkit. This metadata driven application can easily be used to drive the UI by code and enable rapid development of surveys or data gathering 'Wizards'. This includes executing validation and even business rules with outcomes after the survey is completed.

Prerequisites

  • Visual Studio or Jetbrains Rider
  • .NET Core 3.1 SDK
  • Node
  • NPM
  • Python 2.7
  • Ruby

Add AppSecrets to your project

{
  "BasicAuth": {
    "UserName": "internal",
    "Password": "test"
  }
}

add your own password and store as secret.json. Then run the following command in the project folder

secret.json cat | dotnet user-secrets set

or on windows simply use Visual Studio and right click on the project and choose 'manage secrets'

Set up

Install the frontend dependencies by running the following from the project folder:

npm install

Build the solution, either within Visual Studio, or running the following .NET Core CLI command from the solution directory:

dotnet build

Build the frontend assets (compiled JS and CSS) by running the following from the project folder:

npm run buildDev

Run the web application through Visual Studio, or running the following .NET Core CLI command from the solution directory:

dotnet run