Chapter 5. Creating Dynamic Websites

Now that we have established a basic structure for our application, we can start to add more functionality and build a dynamic website that responds to user input.

In this chapter, we will cover the following topics:

  • Adding a new module to our application for storing and deleting data
  • Exposing a JSON API to handle user-submitted data
  • Implementing communication between the client and server using Ajax
  • Building up more complex HTML views using partial templates

Handling user-submitted data

We're going to implement the classic guessing game of Hangman (see https://en.wikipedia.org/wiki/Hangman_(game)). Users will be able to post new words to guess, and to guess words posted by others. We'll look at creating new games ...

Get Learning 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.