Story points | 3 |
Tags | node express |
Hard Prerequisites |
|
There is no need to create a new git repo for this code submission. This is a continuation of your previous work.
Create an HTML form. This form will (eventually) be used to create Visitor fields in your mongo 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_visit
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 in order to save the visitor details into your databaseMake use of the pug template engine to render the “Thank you” page