Back-end development involves building the server-side “brain” of a website that manages user data, authentication, and database communications.
We’ve just posted a tutorial on the FreeCodeCamp.org YouTube channel that will teach you how to build a basic backend for a website using popular technologies like Node.js, Express.js, and the MongoDB NOSQL database. The tutorial covers the basic components of backend development, walking you through initial server setup, database connections, and code structure using the Model, Route, and Controller patterns. You’ll learn to build practical APIs for user authentication, including password hashing, as well as complete CRUD (create, read, update, delete) operations for managing data. Finally, the video demonstrates how to use Postman to test your server requests and make sure your APIs are working correctly.
This course was developed by Shivani. He is part of the Hack Club. Hack Club is a global non-profit organization that creates a community for high school students who are interested in coding and making things with technology.
The sections covered in this course are:
Introduction and overview
What is the background?
Core Components: Languages, Databases, Runtimes, Frameworks
Backend architecture flowchart
How the front end connects to the back end (APIs).
terms and nodes. Installing js
Project folder structure
Project origin (git and npm)
Setting up a MongoDB Atlas database
Environment Variables (.env)
Permanent and ES module setup
Creating an Express App (app.js)
Connecting the database to the server (database.js)
Server entry point (index.js)
Setting up nodemon and running the server
Understanding Models and Air Diagrams
Creating a user model
Understanding the Paths
Configuring user paths
Understanding Controllers
Coding the register controller
A request journey
HTTP methods and status codes defined
Introduction to the postman
Testing the Register API
Viewing data in MongoDB Atlas
Coding the login controller
Password Hashing with Bcrypt
Comparing passwords for logins
Testing the Login API
Coding the logout controller
Testing the Logout API
Introduction to Crude APIs
Creating post models
Create POST API (Controller and Route)
Examination post
Read all posts API
Get test posts
Update the post API
Testing update post
Delete the post API
Testing delete post
Final commit and result
View the full course freecodecamp.org YouTube channel (2 hour clock),