hi there, this repository contains the code for my "Intro to Backend Development" video tutorial published on the freeCodeCamp YouTube channel!
➡️ Watch me teach the full tutorial here: [Link]
-
Learn what a backend is and its core components.
-
Set up a complete Node.js development environment and project structure.
-
Connect a Node.js application to a database (e.g., MongoDB).
-
Basic HTTP Fundamentals for building APIs .
-
Create Mongoose models for Users and Posts.
-
Build a basic authentication system with Register, Login, and Logout endpoints.
-
Implement complete CRUD (Create, Read, Update, Delete) APIs for posts.
- Clone the repository:
git clone https://github.com/NewSmoke38/intro-to-backend
- Install all the Dependencies:
npm install- Set up your environment variables:
-> Create a new file in the root of the project named .env
-> Copy the contents from the example below and add your own values (like your database connection string).
PORT=4000
MONGODB_URI="your_mongodb_connection_string_here"
- Start the Server:
npm run dev The application will be running on http://localhost:4000 (or the port you specified in your .env file).
