[MacOS 기본 설정] 기본적인 개발 환경 설정

2022. 1. 26. 19:12Note

지속적인 업데이트 예정.

새로운 맥북 및 맥을 살 때마다 잊지 않고 설정 할 개발 환경들 정리..

 

History

2022.01.26 : 첫 작성 시작

2022.02.08 : Java 설치 관련 수정

2022.02.17 : Golang 설치 관련

 

기본
  • HomeBrew : 다양한 패키지 전부 HomeBrew로 가능

https://brew.sh/index_ko

 

Homebrew

The Missing Package Manager for macOS (or Linux).

brew.sh

  • Node : npm 등..

https://nodejs.org/en/

 

Node.js

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

nodejs.org

  • NVM : Node Version Manager

https://github.com/nvm-sh/nvm

 

GitHub - nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions

Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions - GitHub - nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active nod...

github.com

  • JAVA(22.02.08 수정) : 버전 확인해서 필요한 버전으로 설치하기

https://www.oracle.com/java/technologies/downloads/

brew를 이용하기

brew update
brew tap adoptopenjdk/openjdk
brew install [원하는 버전]

이후, bash shell을 사용한다면 ~/.bash_profile 을, zsh shell을 사용한다면 ~/.zshrc를 수정

레퍼런스가 아래에 잘 나와있다.

https://llighter.github.io/install-java-on-mac/

 

맥에서 Brew로 자바 설치하기(feat. 자바버전 바꾸기)

 

llighter.github.io

 

  • Git : 깃

https://git-scm.com/downloads

 

Git - Downloads

Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp

git-scm.com

  • Notion : 협업 관리 툴

https://www.notion.so/ko-kr/product?utm_source=google&utm_campaign=10805039169&utm_medium=104440699897&utm_content=455555244437&utm_term=notion&targetid=kwd-312974742&gclid=Cj0KCQiA_8OPBhDtARIsAKQu0gbh6XmFj1wRzKnJ-SUCo9e612gUwOqVpEH3ZAY5L7bpRYVDmBp7jtwaApIrEALw_wcB 

 

Notion – 메모, 작업, 위키, 데이터베이스를 위한 올인원 워크스페이스

매일 쓰는 여러 업무용 앱을 하나로 합친 새로운 도구. 당신과 당신의 팀을 위한 올인원 워크스페이스예요.

www.notion.so

  • Chrome

https://www.google.co.kr/chrome/?brand=FHFK&gclid=Cj0KCQiA_8OPBhDtARIsAKQu0gb29xye8B-j7x66H7gcDD6VSeohOLrGpa30ynr1AMZIHvW0Lw9orAoaAi-xEALw_wcB&gclsrc=aw.ds 

 

Chrome 웹브라우저

더욱 스마트해진 Google로 더 간편하고 안전하고 빠르게.

www.google.com

 

프론트
  • React : 웹
npm install -g create-react-app
  • React Native CLI : 하이브리드 앱
npm install -g @react-native-community/cli

 

백엔드
  • Golang : 언어

https://go.dev/dl/

 

Downloads - The Go Programming Language

Downloads After downloading a binary release suitable for your system, please follow the installation instructions. If you are building from source, follow the source installation instructions. See the release history for more information about Go releases

go.dev

추후에 protoc등을 이용하기 위해, 그리고 라이브러리 등을 사용하는데 문제가 없도록 환경 변수를 설정한다.

golang 설치 후 goroot 등을 굳이 건드리지 않아도, 아래와 같이 환경 변수만 설정해주면 go mod를 사용하는데 문제는 없다.

~/.zshrc 혹은 ~/.bash_profile에 아래와 같이 환경변수를 설정해준다. 

export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOROOT:$GOPATH:$GOBIN

 

IDE
  • XCode : iOS 및 Mac 빌드, Swift
  • VSC : Golang, JavaScript, TypeScript, Python, SSH, Debug, React, React-Native, etc

https://code.visualstudio.com

 

Visual Studio Code - Code Editing. Redefined

Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications.  Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.

code.visualstudio.com

  • IntelliJ : Java, Spring, Spring Boot, ...

https://www.jetbrains.com/ko-kr/idea/download/#section=mac

 

다운로드 IntelliJ IDEA: 우수성과 인체 공학이 담긴 JetBrains Java IDE

 

www.jetbrains.com

  • Postman : HTTP api Test (REST api Test)

https://www.postman.com/downloads/

 

Download Postman | Get Started for Free

Try Postman for free! Join 17 million developers who rely on Postman, the collaboration platform for API development. Create better APIs—faster.

www.postman.com

  • BloomRPC : gRPC Test(RPC Test)

https://github.com/bloomrpc/bloomrpc

 

GitHub - bloomrpc/bloomrpc: GUI Client for GRPC Services

GUI Client for GRPC Services. Contribute to bloomrpc/bloomrpc development by creating an account on GitHub.

github.com

  • DBeaver : DB Manage Tool (for SQL)

https://dbeaver.io/download/

 

Download | DBeaver Community

Download Tested and verified for MS Windows, Linux and Mac OS X. Install: Windows installer – run installer executable. It will automatically upgrade version (if needed). MacOS DMG – just run it and drag-n-drop DBeaver into Applications. Debian package

dbeaver.io

 

 DB - 컨테이너로 관리하기
  • MongoDB : NOSQL 

https://docs.mongodb.com/manual/reference/program/mongod/

 

mongod — MongoDB Manual

Docs Home → MongoDB Manualmongod is the primary daemon process for the MongoDB system. It handles data requests, manages data access, and performs background management operations.This document provides a complete overview of all command line options for

docs.mongodb.com

docker pull mongo
  • Redis : NOSQL(For Cache, Log, ...)

https://redis.io

 

Redis

Try it Ready for a test drive? Check this interactive tutorial that will walk you through the most important features of Redis. Download it Redis 6.2.6 is the latest stable version. Interested in release candidates or unstable versions? Check the downloads

redis.io

docker pull redis
  • PostgreSQL (or Extra SQL)
docker pull postgres

 

컨테이너
  • Docker
brew install --cask docker
  • Kubernetes