Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

cds-snc/feedback-collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Feedback Collector

Demo: https://cds-feedback-collector.herokuapp.com/

Based on node-starter-app https://github.com/cds-snc/node-starter-app/

Intro

The Feedback Collector captures form data and:

  • emails it to you (if you want), and
  • puts it in a database for later analysis

The Feedback Collector provides a generic URL endpoint to submit forms to. Depending on your choice it will then:

  • redirect the user to a page that you specify, or
  • send a json response confirming the data was recieved

To set up, log in and go through the steps to add a new form. After confirming your email you can then use the endpoint with the ID generated for your form.

Usage

After you login and create a form, you will get an email with a confirmation link. At that point you can hook this up to your form! Copy the ID for your form from the my-forms page into the form you wish to hook up:

<form method="post" action="https://cds-feedback-collector.herokuapp.com/en/send?id=YOUR_FORM_ID" />

That's all there is to it!

Install + Dev Mode

npm install
npm run dev

Tech stack

For documentation related to the tech stack used in this app, see the node-starter-app documentation.