ethereum-org-website

(★ 5,958)

Ethereum.org is a primary online resource for the Ethereum community.

파일 탐색기

파일 수가 많아 일부만 표시됩니다. 전체 파일은 위 다운로드 버튼으로 확인해 주세요.

  • .all-contributorsrc
  • .env.example
  • .eslintrc.json
  • .gitattributes
  • .gitignore
  • .lintstagedrc.js

# 설치 가이드

node
사전 준비물
  • Node.js Node.js (managed via .nvmrc)
  • pnpm latest
  • Corepack latest

설치 및 실행 절차

git clone https://github.com/ethereum/ethereum-org-website.git

저장소를 로컬에 복제합니다.

nvm use

프로젝트에 명시된 Node.js 버전을 활성화합니다.

corepack enable

패키지 관리자 도구인 corepack을 활성화합니다.

pnpm install

프로젝트 의존성을 설치합니다.

cp .env.example .env.local

환경 변수 설정 파일을 복사하여 생성합니다.

pnpm dev

로컬 개발 서버를 실행합니다.

핵심 명령어

pnpm install

프로젝트의 모든 패키지 의존성을 설치합니다.

pnpm dev

로컬 개발 환경을 시작합니다.

로컬 실행 시 브라우저에서 localhost:3000에 접속하여 확인할 수 있습니다.

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

파일 목록이 많아 일부만 표시됩니다.

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

corepack

설명 보기 ▼

Node 프로젝트와 해당 패키지 관리자 사이의 브라지 역할을 하는 런타임 종속성이 없는 패키지.
더 많은 정보: <https://github.com/nodejs/corepack>.

corepack enable

Corepack shim을 Node.js 설치 디렉터리에 추가하여 전역 명령으로 사용할 수 있도록 함:

corepack enable --install-directory {{path/to/directory}}

특정 디렉토리에 Corepack shim을 추가함:

corepack disable

Node.js 설치 디렉터리에서 Corepack shim을 제거:

🔍

git checkout

설명 보기 ▼

Checkout a branch or paths to the working tree.

git checkout -b {{branch_name}}

Create and switch to a new branch:

git checkout -b {{branch_name}} {{reference}}

Create and switch to a new branch based on a specific reference (branch, remote/branch, tag are examples of valid references):

git checkout {{branch_name}}

Switch to an existing local branch:

🔍

git clone

설명 보기 ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

git commit

설명 보기 ▼

Commit files to the repository.

git commit

Open an editor to write a message and commit staged files to the repository:

git commit {{[-m|--message]}} "{{message}}"

Commit staged files to the repository with the specified message:

git commit {{[-F|--file]}} {{path/to/commit_message_file}}

Commit staged files with a message read from a file:

🔍

git fetch

설명 보기 ▼

Download objects and refs from a remote repository.

git fetch

Fetch the latest changes from the default remote upstream repository (if set):

git fetch {{remote_name}}

Fetch new branches from a specific remote upstream repository:

git fetch --all

Fetch the latest changes from all remote upstream repositories:

🔍

git merge

설명 보기 ▼

Merge branches.

git merge {{branch_name1 branch_name2 ...}}

Merge branches into your current branch:

git merge {{[-e|--edit]}} {{branch_name}}

Edit the merge message:

git merge --no-ff {{branch_name}}

Merge a branch and create a merge commit:

🔍

git push

설명 보기 ▼

Push commits to a remote repository.

git push

Send local changes in the current branch to its default remote counterpart:

git push {{remote_name}} {{local_branch}}

Send changes from a specific local branch to its remote counterpart:

git push {{[-u|--set-upstream]}} {{remote_name}} {{local_branch}}

Send changes from a specific local branch to its remote counterpart, and set the remote one as the default push/pull target of the local one:

🔍

git remote

설명 보기 ▼

Manage set of tracked repositories ("remotes").

git remote {{[-v|--verbose]}}

List existing remotes with their names and URLs:

git remote show {{remote_name}}

Show information about a remote:

git remote add {{remote_name}} {{remote_url}}

Add a remote:

🔍

nvm

설명 보기 ▼

Node.js 버전을 설치, 제거 또는 전환.
"12.8" 또는 "v16.13.1" 같은 버전 번호와 "stable", "system" 같은 레이블을 지원.
관련 항목: `asdf`.
더 많은 정보: <https://github.com/nvm-sh/nvm#usage>.

nvm install {{node_version}}

특정 버전의 Node.js 설치:

nvm install {{node_version}}

Node.js의 특정 버전 설치:

nvm use {{node_version}}

현재 셸에서 특정 버전의 Node.js 사용:

🔍

pnpm

설명 보기 ▼

빠르고, 디스크 공간 효율적인 Node.js용 패키지 관리자.
Node.js 프로젝트 및 해당 모듈 의존성 관리.
더 많은 정보: <https://pnpm.io/pnpm-cli>.

pnpm init

`package.json` 파일 생성:

pnpm {{[i|install]}}

`package.json`에 의존성으로 나열된 모든 패키지를 다운로드:

pnpm add {{module_name}}@{{version}}

특정 버전의 패키지를 다운로드하여 `package.json`의 의존성 목록에 추가:

🔍

yarn

설명 보기 ▼

JavaScript 및 Node.js 패키지 대체 관리자.
더 많은 정보: <https://yarnpkg.com/cli>.

yarn global add {{module_name}}

전역적으로 모듈 설치:

yarn install

`package.json` 파일에 참조된 모든 의존성을 설치 ( `install`은 선택 사항입니다):

yarn add {{module_name}}@{{version}}

모듈을 설치하고 `package.json` 파일에 대한 의존성으로 저장 (개발 전용 의존성으로 추가하려면 `--dev` 추가):

🔍

apt

설명 보기 ▼

Debian 기반 배포판을 위한 패키지 관리 도구.
Ubuntu 16.04 이후 버전에서 대화형 사용 시 `apt-get`의 권장 대체 도구.
다른 패키지 관리자의 동등한 명령을 보려면 <https://wiki.archlinux.org/title/Pacman/Rosetta>.
더 많은 정보: <https://manned.org/apt.8>.

sudo apt update

사용 가능한 패키지 및 버전 목록 업데이트 (다른 `apt` 명령어 실행 전 권장):

apt search {{package}}

주어진 패키지 검색:

apt list {{package}}

패키지 정보 표시:

// repository documentation