mac 개발 환경 셋업 #git #vscode #node.js #python #java
맥 개발 환경을 만드는 것들을 정리해 봤습니다.
도움이 되면 좋겠습니다.

0. Finder
1. Homebrew
2. Git
3. VS Code
4. Node.js
5. Python
6. Java
- ₩ 대신 ` 로 고정하기
mkdir -p ~/Library/KeyBindings
vi ~/Library/KeyBindings/DefaultkeyBinding.dict
{
"₩" = ("insertText:", "`");
}
- restart application
1. brew 패키지 매니저 https://okdevtv.com/mib/brew
2. oh-my-zsh 터미널 https://okdevtv.com/mib/zsh
3. open ./
4. open https://mp4.okdevtv.com
5. 기본 리눅스 명령 https://okdevtv.com/mib/linux
기본적인 리눅스 명령
basic commands | linux | windows |
change directory | cd | cd |
current directory | pwd | cd |
list files | ls, ll | dir |
list files info | ls -l | dir |
view file content | cat filename | type filename |
open site | open http://www.naver.com | explorer http://www.naver.com |
edit file | nano filename | notepad filename |
uv 가상 환경
uv init project -p 3.10
cd project
uv venv
# 가상환경 활성화 (macOS, Linux, WSL)
source .venv/bin/activate
# Windows
.venv\Scripts\activate
# VSCode로 열기
code .
uv add requests
# pyproject.toml 파일 확인
# 가상환경 비활성화
deactivate
[project]
name = "example"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"requests>=2.32.3",
]
Git Bash
1. brew install git
2. git 커미터 등록
- git config --global user.name kenu
- git config --global user.email kenu.heo@gmail.com
VS Code
1. code ./
2. VS Code 최적화 설정
2. Best Extensions
Node.js 개발 환경
1. nvm; Node.js Version Manager
2. 시스템 환경 변수 편집
3. pnpm; better npm
nvm
- https://okdevtv.com/mib/nodejs/nvm
# install
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
nvm i 20
node -v
npm i -g npm
🐍 Python 개발 환경
1. uv
2. uv 가상 환경
3. VS Code 익스텐션
https://github.com/astral-sh/uv
uv (Ultrafast Python Package Installer)
- https://github.com/astral-sh/uv
- # macOS, Linux에 설치 (PowerShell)
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env
- uv -V
- # With pip
pip install uv
uv 가상 환경
uv init project -p 3.10
cd project
uv venv
# 가상환경 활성화 (macOS, Linux, WSL)
source .venv/bin/activate
# Windows
.venv\Scripts\activate
# VSCode로 열기
code .
uv add requests
# pyproject.toml 파일 확인
# 가상환경 비활성화
deactivate
Conda와 UV 비교
기능 | Conda | UV |
언어 지원 | 다양한 언어 지원 (Python, R, C++ 등) | Python 전용 |
설치 속도 | 보통 | 매우 빠름 |
메모리 사용량 | 높음 | 낮음 |
가상환경 관리 | 내장 기능 | 내장 기능 |
패키지 소스 | conda 저장소, PyPI | PyPI |
구현 언어 | Python | Rust |
☕️ Java 개발 환경
2. VS Code Extensions - Spring Boot
3. STS(Eclipse)
4. IntelliJ IDEA Community Edition
sdkman
1. 설치
curl -s "https://get.sdkman.io" | bash
