Skip to content

Primary code repository for WFNEWS 2.0

License

Apache-2.0, Apache-2.0 licenses found

Licenses found

Apache-2.0
LICENSE
Apache-2.0
LICENSE.md
Notifications You must be signed in to change notification settings

bcgov/nr-bcws-wfnews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

671cc52 · Jan 29, 2025
Nov 8, 2024
Oct 28, 2024
Jan 28, 2025
Jan 15, 2024
Mar 25, 2024
Mar 23, 2023
Oct 22, 2024
Apr 23, 2024
Jul 4, 2023
Oct 31, 2024
Jan 29, 2025
Jun 15, 2022
Oct 22, 2024
Jun 15, 2022
Jun 15, 2022
Jun 15, 2022
Apr 3, 2024
Apr 3, 2024
Jun 13, 2022
Jun 15, 2022
Oct 22, 2024
Jun 15, 2022
Jun 15, 2022
Dec 27, 2023
Jul 5, 2023
Apr 3, 2024

BCWS Situation Report (WFNEWS)

Lifecycle License

Sonar Status

Bugs Maintainability Rating Reliability Rating Security Rating Vulnerabilities

Welcome to WFNEWS 2.0

This is the primary code repository for WFNEWS 2.0

The high-level goals of the Wildfire News project are:

  • Consolidate the Wildfire Dashboard, Wildfires of Note and Current Wildfire Activity into a single application.
  • Replace Wildfire News Application with richer functionality that requires minimal training.
  • Use a Content Management System to manage information where it makes sense.
  • Provide a map interface option for public users, while addressing issues identified with current sites.
  • Streamline access to Wildfire and related incident information
  • Consolidate Public Mobile application functionality with Wildfire Situation Report functionality

Technologies used

Getting Started

Local Deployment

For local development, we recommend starting individual services with Docker

You can create a database instance via

docker run --name wfnews-postgres -e POSTGRES_USER=wfnews -e POSTGRES_PASSWORD=password -p 5432:5432 -d postgis/postgis:13-3.3
docker pull postgis/postgis:13-3.3

And build the database model with Liquibase:

docker build -t liquibase -f Dockerfile.liquibase.local .
docker run --rm liquibase --url=jdbc:postgresql://<your instance ip>:5432/wfnews --changelog-file=main-changelog.json --username=wfnews --password=password update

Similar docker scripts are provided for running the WFNEWS API and UI respectively. Local development configurations are provided for running the Angular application outside of the Java Spring container.

Storybook

For UI/UX development we have Storybook for developers. You can run storybook using the following command:

ng run WFNEWS:storybook

Create stories for any new or rewritten compoenents.

Node 18+ is required.

CI/CD for DEV/TEST/PROD Deployments

The WFNEWS project is built and deployed via Github actions. A Terraform cloud team server handles running the Terraform. A CI pipeline is setup to run static analysis of the Typescript.

Testing

This project is tested with BrowserStack