GitHub Tutorial

Git provides tools to track changes, collaborate, and manage different versions of a project. Below are the core concepts I learned:

What is Git?

Git is a version control system used to track changes in code.

Basic Commands

Core Git Concepts

Repository

Commit

Staging Area

Branch

Merge

History

Workflow

Edit → Add → Commit → Push → Deploy

Setting Up an Astro Project with Node.js

This tutorial explains how to set up an Astro project locally using Node.js and npm, install the required dependencies, run the development server, and test live updates using hot reload.

Step 1: Install Node.js

First, install Node.js on your computer. Installing Node.js also installs npm, which is the package manager used to install and manage project dependencies.

Step 2: Open the Project Folder

Open the terminal and move into the project folder:

cd max-astro-site

Step 3: Install Project Dependencies

Run the following command:

npm install

This installs all required packages for the project and creates the node_modules folder.

Step 4: Run the Development Server

Start the local development server with:

npm run dev

This runs the site locally and provides a browser link, usually:

http://localhost:4321

Step 5: View the Site in the Browser

Open http://localhost:4321 in the browser to view the local version of the website.

Step 6: Test Hot Reload

Make a small change in a file such as src/pages/index.astro, then save the file. The browser updates automatically without needing to restart the server.

Key Concepts

Workflow Summary

Install Node.js → Open project → Run npm install → Run npm run dev → Open localhost → Edit and test changes.