The purpose of this project is to provide a very simple project which contains the latest version of the HOF framework, and necessary dependencies to get started with building a HOF form.
Using this project, and therefore the HOF framework, requires Redis. Instructions on how to install redis on OSX.
Further details of HOF requirements can be found here.
https://ukhomeofficeforms.github.io/hof-guide/HOF_Framework/1-getting-started
-
Clone this repo
git clone git@github.com:UKHomeOfficeForms/hof-skeleton.gitinto a destination folder of your chosing. -
Update the git remote to point to the repository you want to push the code to:
git remote set-url origin <NEW_GIT_URL_HERE>. -
Install the dependencies
yarn install -
Make or copy, or change the
.env.examplefile to.env(this contains some sample env configuration for the application to work) -
Run the service in dev mode
yarn start:dev -
Access the service locally on
http://localhost:8080
If you want to run the application in a containerised setup, there is a docker compose file ready to use. This will build the container image based on the dockerfile and run it alongside an instance of redis on the same shared network:
docker compose up
Once all services are up successfully, access the service locally on http://localhost:8080
- HOF v22.7.2
- Jest v29.7.0
- eslint v8.56.0
- eslint-config-hof v1.3.4