Skip to content

This repo consists of the code taught in my video tutorial on "Intro to Backend Dev" published on the freeCodeCamp YouTube channel!

Notifications You must be signed in to change notification settings

NewSmoke38/intro-to-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro to Backend Development - My freeCodeCamp YouTube Tutorial

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]

Watch the freeCodeCamp Tutorial

☑️ What You'll Learn in this video

  • 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.

How to run this code and test the APIs

To get a local copy up and running, follow these steps:

  1. Clone the repository:
git clone https://github.com/NewSmoke38/intro-to-backend
  1. Install all the Dependencies:
npm install
  1. 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"
  1. Start the Server:
npm run dev 

The application will be running on http://localhost:4000 (or the port you specified in your .env file).


⭐ If you found this tutorial helpful, please consider giving this repository a star!

About

This repo consists of the code taught in my video tutorial on "Intro to Backend Dev" published on the freeCodeCamp YouTube channel!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published