Rebuilt the node app. This time without express-generator.
Added a form that retrieves the input data and shows it... well almost. My form currently a weird value from the radio button.
Began to understand express + EJS more and became quicker with it.
When rebuilding I had issues with rebuilding the 'updating' the response from form to partial. It ended up being fixed by using a NON-DRY method (repeating the constants within /feature .get and .post)
Package
Name
Nathan Bommezijn
Class
TECH-4
GitHub username
Dewarian
GitHub repository
bt-dating-app
Summary
Rebuilt the node app. This time without express-generator. Added a form that retrieves the input data and shows it... well almost. My form currently a weird value from the radio button. Began to understand express + EJS more and became quicker with it. When rebuilding I had issues with rebuilding the 'updating' the response from form to partial. It ended up being fixed by using a NON-DRY method (repeating the constants within /feature .get and .post)
Resources used
https://expressjs.com/en/starter/basic-routing.html https://expressjs.com/en/4x/api.html#router https://expressjs.com/en/guide/using-middleware.html
Any thoughts?
It was doable, and interesting, had some issues because error handling with express / ejs wasn't that clear for me.