5. Workflows, Version Control & Tooling
Professional Tooling: Working Like an Engineer
Writing code is only half of an engineer's job. The other half is managing that code, tracking changes, downloading external libraries, and packaging the application for the browser. This module covers the essential tools used in every professional agency.
Git: The Time Machine
Git is a version control system installed on your computer. It takes snapshots of your codebase. If you make a mistake and break your app, you can instantly revert back to a previous, working snapshot.
GitHub: The Cloud Hub
If Git is the local time machine, GitHub is the cloud storage for those time machines. It allows you to back up your code and collaborate with other developers.
NPM: Node Package Manager
You don't need to write every feature from scratch. NPM allows you to download "packages" (libraries of code written by others) directly into your project.
The Importance of .gitignore
When you run `npm install`, NPM downloads thousands of files into a folder called `node_modules`. This folder is massive. You should NEVER upload this to GitHub. The `.gitignore` file tells Git to ignore it.
Vite: The Modern Bundler
Browsers only understand basic HTML, CSS, and JS. They do not understand React (JSX) or TypeScript. A Bundler translates your advanced code into basic code that browsers can read. Vite is the incredibly fast, modern standard.
Knowledge Check
Ready to test your understanding of 5. Workflows, Version Control & Tooling?