Backend development involves building the server-side "brain" of a website that manages user data, authentication, and database communication.

We just posted a tutorial on the freeCodeCamp.org YouTube channel that will teach you how to construct a basic backend for a website using popular technologies like Node.js, Express.js, and the MongoDB NoSQL database. The tutorial covers the core components of backend development, walking you through the initial server setup, database connection, and code structure using a model, route, and controller pattern. You will learn to build practical APIs for user authentication, including password hashing, as well as full CRUD (Create, Read, Update, Delete) operations to manage data. Finally, the video demonstrates how to utilize Postman to test your server's requests and ensure your APIs are functioning correctly.

This course was developed by Shivani. She is part of Hack Club. Hack Club is a global non-profit organization that creates a community for high school students interested in coding and making things with technology.

Here are the sections covered in this course:

  • Introduction & Overview

  • What is a Backend?

  • Core Components: Languages, Databases, Runtimes, Frameworks

  • Backend Architecture Flowchart

  • How Frontend Connects to Backend (APIs)

  • Prerequisites & Installing Node.js

  • Project Folder Structure

  • Project Initialization (Git & npm)

  • Setting up MongoDB Atlas Database

  • Environment Variables (.env)

  • Constants & ES Modules Setup

  • Creating the Express App (app.js)

  • Connecting Database to Server (database.js)

  • Server Entry Point (index.js)

  • Setting up Nodemon & Running the Server

  • Understanding Models & ER Diagrams

  • Creating the User Model

  • Understanding Routes

  • Setting up User Routes

  • Understanding Controllers

  • Coding the Register Controller

  • The Journey of a Request

  • HTTP Methods & Status Codes Explained

  • Introduction to Postman

  • Testing the Register API

  • Viewing Data in MongoDB Atlas

  • Coding the Login Controller

  • Hashing Passwords with Bcrypt

  • Comparing Passwords for Login

  • Testing the Login API

  • Coding the Logout Controller

  • Testing the Logout API

  • Intro to CRUD APIs

  • Creating the Post Model

  • Create Post API (Controller & Route)

  • Testing Create Post

  • Read All Posts API

  • Testing Get Posts

  • Update Post API

  • Testing Update Post

  • Delete Post API

  • Testing Delete Post

  • Final Commit & Conclusion

Watch the full course on the freeCodeCamp.org YouTube channel (2-hour watch),.