Skip to content

DTS-STN/Life-Journeys

Repository files navigation

Life-Journeys

Build Status link

Getting Started

First, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

Enabling Report a Problem

  1. First create a GC Notify Account
  2. Once you have your account created ask to be added to the Alpha Site account
  3. Set the following environment variables (definitions below ) REPORT_A_PROBLEM_ENABLED, NOTIFY_REPORT_A_PROBLEM_TEMPLATE_ID, NOTIFY_REPORT_A_PROBLEM_EMAIL, NOTIFY_API_KEY, NOTIFY_BASE_API_URL
  4. Start application as usual

Environment Variables

Here is a list of all the environment variables used to configure the application along with what they do.

REPORT_A_PROBLEM_ENABLED: Feature flag for the report a problem API to enable sending to GC Notify. Leave undefined if you do not want to enable this.

NOTIFY_REPORT_A_PROBLEM_TEMPLATE_ID: The Notify template ID for the report a problem email template

NOTIFY_REPORT_A_PROBLEM_EMAIL: The email to send it too

NOTIFY_API_KEY: The Notify API key

NOTIFY_BASE_API_URL: The base url for the Notify api. This value should be https://api.notification.canada.ca

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!