iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🔰

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.

https://code.visualstudio.com/docs/?dv=osx

Install the necessary extensions. This part is up to your preference.

  1. Japanese Language Pack for Visual Studio Code
    Translates VS Code settings into Japanese.
  2. Live Server
    Used to launch HTML locally.
  3. Auto Close Tag
    Automatically closes HTML tags.
  4. Auto Rename Tag
    When you change one side of an HTML tag, it automatically matches the other. It's surprisingly convenient.
  5. Git Graph
    Allows visualization of Git commit status.
  6. Prettier - Code formatter
    Automatically formats code when saving.
  7. Indent-rainbow
    Adds color to indents. Makes them easier to see.
  8. ES7+ React/Redux/React-Native snippets
    Easily input React boilerplates.
  9. 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.

https://nodejs.org/en

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.

https://git-scm.com/downloads/win

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