iTranslated by AI
Setting Up a Development Environment from Scratch (macOS)
Introduction
I finally bought a Mac today!! I've wanted one for so long, so I'm really happy!
With that, I needed to set up the environment, so I'm leaving the procedure here for my future self or someone else.
VS Code Installation and Setup
First, let's install VS Code. I installed it from the following site.
Install the necessary extensions. This part is up to your preference.
- Japanese Language Pack for Visual Studio Code
Translates VS Code settings into Japanese. - Live Server
Used to launch HTML locally. - Auto Close Tag
Automatically closes HTML tags. - Auto Rename Tag
When you change one side of an HTML tag, it automatically matches the other. It's surprisingly convenient. - Git Graph
Allows visualization of Git commit status. - Prettier - Code formatter
Automatically formats code when saving. - Indent-rainbow
Adds color to indents. Makes them easier to see. - ES7+ React/Redux/React-Native snippets
Easily input React boilerplates. - ESLint
JavaScript syntax checking.
Installing Node.js
Node.js is a JavaScript runtime environment designed for building web applications.
Let's install this as well.
Once done, open the terminal and try running the version command.
node --version
npm --version
If the version is displayed like v22.14.0 10.9.2, it's a success.
Now you can create React applications.
Installing Git
On Mac, it seems to be included by default, so there was no need to install it. For Windows, you can install it from the link below.
Similarly, let's check it using the version command.
git --version
If it returns something like git version 2.39.5 (Apple Git-154), it's a success.
Let's do the initial Git configuration
Let's link your Git and GitHub accounts. Run the following commands in the terminal.
git config --global user.name GitHub_account_username
git config --global user.email email_registered_to_your_GitHub_account
Once completed, let's check the configuration information with the following command.
git config --global -l
If you can see the username and email address you set, it's a success.
Discussion