Server-side Development with Node.js

What do backend languages do?

What do backend languages do?

Three examples of interactions between an app’s frontend and backend such as:

  • 1. Requesting a resource from an app’s home page like a specific page
    • Example: a file is served by an application’s backend server
Static File Server Diagram

What do backend languages do?

  • 2. Storing information and saving it in a database like PostgreSQL, MySQL or MongoDB
    • Example: for an online bookstore user information(name, username, favorite book categories etc..) and book information(book title, year published, price, quantity available, etc...)
database graphic

Posting

Check out node_exercises/posting folder. Run npm install and look at all the code

Body-parser? Express itself does not understand JSON because it remains flexible to understand other languages (like XML). So this parser gives Express the tools to understand JSON.

Review

Check out the final project app in the code you cloned

Watch This Node Module in the Web Developer Course!

Click here for Node Documentation

Resources and Exercises