Setting up our basic app structure

To set up the basic app structure, I'm going to open up the folder that we just created on the desktop, called node-chat-app:

In this folder, we'll get started by making a couple of directories. Now, unlike the other apps in the previous chapters, the chat app is going to have a frontend, which means we'll be writing some HTML.

We'll also add some styles and writing some JavaScript code that runs in the browser, as opposed to running on the server. For this to work, we'll have two folders:

  • One will be called server, which will store our Node.js code
  • The other one will be called public, which will store our ...

Get Advanced Node.js Development 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.