Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

bcgov/foi-report-download

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

445 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Important

The FOI Report Download application has been discontinued and is no longer maintained.

FOI Report Download (Discontinued)

Lifecycle:Retired

This is an intranet web-app allowing authenticated users to specify filters and download FOI report in PDF or Excel format.

Features

  • VueJS frontend and NodeJS backend; with Keycloak authentication on frontend (using a public client from Common Hosted Single Sign-On (CSS)).
  • A form allowing user to specify filters and reporting file format
  • Download report in either pdf or Excel format

Usage

Configuration

Environment Variable Mandatory Default Description
PGUSER Yes
PGHOST Yes
PGPASSWORD Yes
PGDATABASE Yes
PGPORT No 443
SNOWPLOW_TRACKER_URL Yes snowplow tracker url
SNOWPLOW_COLLECTOR_HOST Yes snowplow collector host
TRUST_PROXY No express.js trust proxy
NODE_ENV Yes production in local set it to dev
VITE_PROJECT Yes dev in test=test in prod=prod

Development

VS Code is the preferred dev tool.

Requirements
  • localhost has access to Redshift
  • localhost has Node.js v18.8.0 installed (other Node.js versions may work but have not been tested)
  • localhost has applicable env var above defined
Install & Launch
  1. Run
git clone https://github.com/bcgov/foi-report-download.git
cd foi-report-download
npm install
  1. Download keycloak.json from Keycloak admin console client's Installation tab to ./keycloak.json

  2. Run

    npm run start
    

    If everything works out, the output should be something like

    $ node .
    launch http://localhost:8080 to explore
    
  3. Open http://localhost:8080 in browser and login to the app using IDIR-MFA if you are not already logged in.

Project Status

This repository is no longer maintained.

Related Repositories

This is the central repository for work by the GDX Analytics Team.

This is the GDX Analytics project for the FOI Project's Lookml.

Getting Help or Reporting an Issue

For any questions regarding this project, or for inquiries about starting a new analytics account, please contact the GDX Analytics Team.

Contributors

The GDX Analytics Team are the main contributors to this project and maintain the code.

How to Contribute

If you would like to contribute, please see our CONTRIBUTING guideleines.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

License

Copyright 2015 Province of British Columbia
 
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
 
   http://www.apache.org/licenses/LICENSE-2.0
 
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.

About

FOI report download for internal users

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages