Demo: https://cds-feedback-collector.herokuapp.com/
Based on node-starter-app https://github.com/cds-snc/node-starter-app/
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.
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!
npm install
npm run dev
For documentation related to the tech stack used in this app, see the node-starter-app documentation.