{"id":40564427,"url":"https://github.com/bcgov/nr-bcws-wfprev","last_synced_at":"2026-01-30T00:55:50.027Z","repository":{"id":256622887,"uuid":"843496957","full_name":"bcgov/nr-bcws-wfprev","owner":"bcgov","description":"The goal of the BC Wildfire Service (BCWS) Prevention Program is to reduce the negative impacts of wildfire on public safety, property, the environment and the economy using the seven disciplines of the FireSmart program.","archived":false,"fork":false,"pushed_at":"2026-01-13T01:44:37.000Z","size":13954,"stargazers_count":4,"open_issues_count":3,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-01-13T05:20:04.421Z","etag":null,"topics":["angular","aws","docker-compose","for","forest-fire","graalvm","liquibase","mof","natural-resource-ministries","postgis","postgresql","prescribedfire","results","spring-boot","terraform","terragrunt","wildfire"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bcgov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-16T16:39:27.000Z","updated_at":"2026-01-09T22:27:40.000Z","dependencies_parsed_at":"2024-09-18T03:45:42.393Z","dependency_job_id":"f9404165-5bda-4b5f-b0bf-51a4d21a7737","html_url":"https://github.com/bcgov/nr-bcws-wfprev","commit_stats":null,"previous_names":["bcgov/nr-bcws-wfprev"],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/bcgov/nr-bcws-wfprev","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fnr-bcws-wfprev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fnr-bcws-wfprev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fnr-bcws-wfprev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fnr-bcws-wfprev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcgov","download_url":"https://codeload.github.com/bcgov/nr-bcws-wfprev/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcgov%2Fnr-bcws-wfprev/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28620574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"ssl_error","status_checked_at":"2026-01-20T23:47:29.996Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["angular","aws","docker-compose","for","forest-fire","graalvm","liquibase","mof","natural-resource-ministries","postgis","postgresql","prescribedfire","results","spring-boot","terraform","terragrunt","wildfire"],"created_at":"2026-01-21T01:06:39.882Z","updated_at":"2026-01-21T01:06:40.593Z","avatar_url":"https://github.com/bcgov.png","language":"Java","readme":"# nr-bcws-wfprev\nThe goal of the BC Wildfire Service (BCWS) Prevention Program is to reduce the negative impacts of wildfire on public safety, property, the environment and the economy using the seven disciplines of the FireSmart program.\n\n## Technologies used\n\n* [Angular](https://angular.io/)\n* [Spring Boot](https://spring.io/projects/spring-boot)\n* [PostGIS](https://postgis.net/)\n* [Terraform](https://www.terraform.io)\n* [Terragrunt](https://terragrunt.gruntwork.io)\n* [AWS](https://aws.amazon.com/)\n* [Docker](https://www.docker.com/)\n\n# Getting Started\n\n## Local Deployment\n\n### The Easy Way\n\nYou can start the full system with the following command:\n\n* Create a .env file in the root of the project with the following content:\n```WFPREV_DATASOURCE_URL=jdbc:postgresql://localhost:5432/wfprev\nWFPREV_DATASOURCE_USERNAME=wfprev\nWFPREV_DATASOURCE_PASSWORD=***\nWFPREV_CLIENT_ID=WFNEWS-REST\nWFPREV_CLIENT_SECRET=***\nWEBADE_OAUTH2_CHECK_TOKEN_URL=https://wfappsi.nrs.gov.bc.ca/pub/oauth2/v1/check_token\nWEBADE_OAUTH2_CHECK_AUTHORIZE_URL=https://wfappsi.nrs.gov.bc.ca/ext/oauth2/v1/oauth/authorize\nSPRING_MAIN_ALLOW_BEAN_DEFINITION_OVERRIDING=true\nWFPREV_DB_PASSWORD=***\nPOSTGRES_PASSWORD=**\nWFPREV_BASE_URL=http://localhost:8080\nWFPREV_GDB_FUNCTION_NAME=wfprev-gdb-dev\n```\n\n* Then run this command```docker compose up```\n    * This will start the database, liquibase and the backend service\n    * If you want to also run the API (With GraalVM), run the following command:\n    ```docker compose --profile api up```\n    * to get GraalVM re-register, run :\n    ```docker compose --profile api up --build```\n    * To wipe out the db on your local\n    ```docker compose down -v ```\n* NOTE - Windows users may have to fix the line endings in the server/wfprev-api/mvnw file.  The simplest way to do this is to run the following command:\n```\nOpen the mvnw file in a text editor (like VS Code or Notepad++).\nConvert the line endings:\n  •\tVS Code: Look for the line ending selector in the bottom-right corner and change it to LF.\n  •\tNotepad++: Use the menu Edit \u003e EOL Conversion \u003e Unix (LF).\n```\n### The Hard Way\n\nYou can create a database instance via\n\n#### Postgres\n```\ndocker pull postgis/postgis:16-3.4\ndocker run --name wfprev-postgres \\\n    --env-file .env.local \\\n    -e POSTGRES_USER=wfprev \\\n    -p 5432:5432 \\\n    -d postgis/postgis:16-3.4\n\n```\n\nNote: Mac users will get the following error, jsut ignore for now ```WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested\nf0de92debad131b48e2d72a9d211bafaa2b8bcb800e5077bb59f3225e5729086```\n\nAnd build the database model with Liquibase:\n\n#### Liquibase\n```\ncd db\ndocker build -t liquibase -f Dockerfile.liquibase.local .   \ndocker run --rm \\\n    --env-file .env.local \\\n    liquibase \\\n    /bin/bash -c 'liquibase \\\n    --url=jdbc:postgresql://host.docker.internal:5432/wfprev \\\n    --changelog-file=main-changelog.json \\\n    --username=wfprev \\\n    --password=$WFPREV_DB_PASSWORD \\\n    update'\n```\n\nThe db/.env.local file should have the following content:\n\n```\nWFPREV_DB_PASSWORD=***\nPOSTGRES_PASSWORD=***\n```\n\n#### Backend\nWe typically run the API from our IDE but you can find more detailed information in the README at server/wfprev-api\n\n\n\n[![Lifecycle:Experimental](https://img.shields.io/badge/Lifecycle-Experimental-339999)](\u003cRedirect-URL\u003e)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcgov%2Fnr-bcws-wfprev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcgov%2Fnr-bcws-wfprev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcgov%2Fnr-bcws-wfprev/lists"}