{"id":16078218,"url":"https://github.com/defra/find-ffa-frontend","last_synced_at":"2026-04-29T17:05:00.873Z","repository":{"id":256567567,"uuid":"855773363","full_name":"DEFRA/find-ffa-frontend","owner":"DEFRA","description":"Git repository for service find-ffa-frontend","archived":false,"fork":false,"pushed_at":"2024-11-28T16:25:29.000Z","size":1082,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-05T10:43:03.773Z","etag":null,"topics":["cdp","frontend","node","service"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DEFRA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-11T12:52:06.000Z","updated_at":"2024-11-28T16:23:54.000Z","dependencies_parsed_at":"2024-09-11T19:54:29.607Z","dependency_job_id":"05d8b9d0-3e6e-4c61-a6e8-0e411b206e74","html_url":"https://github.com/DEFRA/find-ffa-frontend","commit_stats":null,"previous_names":["defra/find-ffa-frontend"],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Ffind-ffa-frontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Ffind-ffa-frontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Ffind-ffa-frontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Ffind-ffa-frontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DEFRA","download_url":"https://codeload.github.com/DEFRA/find-ffa-frontend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325648,"owners_count":20920713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cdp","frontend","node","service"],"created_at":"2024-10-09T10:09:14.730Z","updated_at":"2026-04-29T17:04:55.832Z","avatar_url":"https://github.com/DEFRA.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Farming Funding Assistant (FFA) Frontend\n\nNote that this is port of https://github.com/DEFRA/fcp-find-ai-frontend, which he been configured to run in CDP. It therefore doesn't follow the usual CDP template and code conventions\n\n## Prerequisites\n\n- Docker\n- Docker Compose\n\n## Local Development\nInstall local dependencies\n```BASH\nnpm i\n```\n\nCopy and populate .env file (api keys will need to be added in manually)\n```BASH\ncp .env.example .env\n```\n\nSpin up docker container\n```BASH\ndocker compose up \n### or to launch in the background:\ndocker compose up -d\n```\n\nBuild frontend assets\n```BASH\nnpm run build\n```\n\nRun application on http://localhost:3000/\n\n## Running the application\n\n### Build container image\n\nWhen using the Docker Compose files in development the local `app` folder will\nbe mounted on top of the `app` folder within the Docker container, hiding the CSS files that were generated during the Docker build.  For the site to render correctly locally `npm run build` must be run on the host system. This will run `webpack` build and prevents `_layout.njk` file being replaced by volume mapping in `docker-compose.override.yaml`.\n\n\nBy default, the start script will build (or rebuild) images so there will\nrarely be a need to build images manually. However, this can be achieved\nthrough the Docker Compose\n[build](https://docs.docker.com/compose/reference/build/) command:\n\n```\n# Build container images\ndocker compose build\n````\n\n### Start\n\nUse Docker Compose to run service locally.\n\n```\ndocker compose up\n```\n\n## Test structure\n\nThe tests have been structured into subfolders of `./test` as per the\n[Microservice test approach and repository structure](https://eaflood.atlassian.net/wiki/spaces/FPS/pages/1845396477/Microservice+test+approach+and+repository+structure)\n\n### Running tests\n\nA convenience script is provided to run automated tests in a containerised\nenvironment. This will rebuild images before running tests via docker-compose,\nusing a combination of `docker-compose.yaml` and `docker-compose.test.yaml`.\nThe command given to `docker-compose run` may be customised by passing\narguments to the test script.\n\nExamples:\n\n```\n# Run all tests\nscripts/test\n\n# Run tests with file watch\nscripts/test -w\n```\n\n## CI pipeline\n\nThis service uses github actions, as per CDP standard. See `.github`\n\n## Licence\n\nTHIS INFORMATION IS LICENSED UNDER THE CONDITIONS OF THE OPEN GOVERNMENT LICENCE found at:\n\n\u003chttp://www.nationalarchives.gov.uk/doc/open-government-licence/version/3\u003e\n\nThe following attribution statement MUST be cited in your products and applications when using this information.\n\n\u003e Contains public sector information licensed under the Open Government license v3\n\n### About the licence\n\nThe Open Government Licence (OGL) was developed by the Controller of Her Majesty's Stationery Office (HMSO) to enable information providers in the public sector to license the use and re-use of their information under a common open licence.\n\nIt is designed to encourage use and re-use of information freely and flexibly, with only a few conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefra%2Ffind-ffa-frontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefra%2Ffind-ffa-frontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefra%2Ffind-ffa-frontend/lists"}