Story points | 3 |
Tags | node express |
Hard Prerequisites | |
IMPORTANT: Please review these prerequisites, they include important information that will help you with this content. | |
|
In this project you’ll be using Express to create a form that lets users interact with your database
Create an HTML form. This form will be used to create Visitor fields in your database. Your form should have the following fields:
Create a basic express.js application and serve your form as a static file
The URL should be http://localhost:[YOUR_PORT]/new_visitor
There should be a submit button on the form. When the user submits the form then the following should happen:
addNewVisitor
function will be called to save the visitor details into your databaseMake use of the pug template engine to render the “Thank you” page