From the course: Building a Website with Node.js and Express.js

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Add business logic

Add business logic

From the course: Building a Website with Node.js and Express.js

Start my 1-month free trial

Add business logic

- [Instructor] With our routes in place, we're missing an important piece of our application. Right now, if one speaker would ask us to change their information, we'd still need to change that on various locations like for the navigation and for the top list of speakers. Also, how should we collect feedback and show it on the Feedback page? We want a central place where all the speakers' information and all feedback is stored. We need a way to retrieve this information to render into our template. In any dynamic website, you will find some kind of business logic. As this is regular JavaScript code and not really related to Express, I've already prepared classes that will give us that. You'll find them in the provided folder in Services. So, to get started, let's move this Services folder to the root of our application. Also, there is a folder, Data, that contains the feedback and the speakers data. So I'll move that to…

Contents