Chapter 9. Putting it all together in Node.js

You now have everything you need to create your Sports Survey site. Users can log in to access the survey, which will be populated by Question objects and contain Player objects as the answers. That structure will be displayed on a view, and the answers will be tracked in memory so that you can display results.

Many of these pieces are already in place. You have your login view redirecting to the survey view if the user successfully logs in. You have code to fetch a collection of Player objects. You just need to cache and not display the collection for the moment. You will wind up displaying only a small section of it as the possible answers to choose from for each survey question you ask.

You already ...

Get Node.js for .NET Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.