Important
The FOI Report Download application has been discontinued and is no longer maintained.
This is an intranet web-app allowing authenticated users to specify filters and download FOI report in PDF or Excel format.
- 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
| 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 |
VS Code is the preferred dev tool.
- 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
- Run
git clone https://github.com/bcgov/foi-report-download.git
cd foi-report-download
npm install
-
Download keycloak.json from Keycloak admin console client's Installation tab to ./keycloak.json
-
Run
npm run startIf everything works out, the output should be something like
$ node . launch http://localhost:8080 to explore -
Open http://localhost:8080 in browser and login to the app using IDIR-MFA if you are not already logged in.
This repository is no longer maintained.
This is the central repository for work by the GDX Analytics Team.
This is the GDX Analytics project for the FOI Project's Lookml.
For any questions regarding this project, or for inquiries about starting a new analytics account, please contact the GDX Analytics Team.
The GDX Analytics Team are the main contributors to this project and maintain the code.
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.
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.