Skip to content

A website analyzing how many Government of Canada services are available online end-to-end.

License

Notifications You must be signed in to change notification settings

YOWCT/end-to-end-services

Repository files navigation

How many government services are available online end-to-end in Canada?

This repository powers a website analyzing how many Government of Canada services are available online from end-to-end.

It uses Hugo and was adapted from the Large Government of Canada IT projects analysis site.

The code here is licensed under the MIT License.

Usage instructions

Installing Hugo

Development of this website requires Hugo, npm, and php.

After cloning the repository, run:

npm install

to install the gh-pages package used for deployments.

Data updates

The _handling folder includes two PHP scripts that automatically generate each of the pages in Hugo's content directory.

To download the latest version of the GC Service Inventory CSV file, run:

php _handling/download.php

Once complete, to generate the content pages from the CSV file, run:

php _handling/parse.php

The overrideCSV folder includes CSV files that normalize department names and add additional metadata for departments and agencies.

Note that the front-matter metadata description in end-to-end-services/content/_index.md currently needs to be updated manually. All other data is generated automatically from the service inventory or the override CSV files.

Automatically-generated content files are still Git-tracked in order to simplify deployments to GitHub Pages.

Local development

For local development, use Hugo's built-in server:

hugo server -D --disableFastRender

To deploy updates to GitHub Pages, use:

npm run deploy

This is a volunteer project and is not affiliated with the Government of Canada.

About

A website analyzing how many Government of Canada services are available online end-to-end.

Resources

License

Stars

Watchers

Forks