- [Instructor] Additionally to everything
that deals with speakers our page has one more piece
of functionality, the feedback page.
We want to factor it out as well,
and for that I already created, pretty much,
everything that we've done before for the speaker service
for you already.
You find a pretty complete feedback service folder
in your provided folder and I already copied it
to a fresh folder on my machine
and I opened it with Visual Studio Code.
Now, on the terminal I run npm install
and if we look a little bit into the service.js file
we see that right now it provides a function
that gives us a list of feedback items.
Now after all dependencies were installed,
I can simply run node bin/run and the applications starts.
And let's look what the service registry says
and there we see this boot request that created a new entry
on the registry for feedback-service.
So this works as well, now all that is left to do
is we have to update our conference app.
And there you find a Feedback-new.js file
which contains everything needed so all service message
along with the callService are in there already.
So we will now simply move this Feedback.js
to Feedback-old.js and rename and rename Feedback-new
to Feedback.js, then we can also clean up the config
even more because now we can also remove
the entry for feedback and also this require for path.
This is now much cleaner already and in data
we can also remove the feedback.json file.
Now let's head over into index.js
and there we also have to change now how we instantiate
feedback because we just parse in the config.
Now let's restart the app and let's open the browser
and open the page localhost-3080.
And the page opens, let's look at feedback page
that looks great as well really.
Let's fill something out, Daniel, Wonderful meetup,
I'm super excited, and we see that we get an error here
because the addEntry function is still missing.
We will create it using cues in this chapter.