near/create-near-app
소개
NEAR 블록체인에 연결된 시작 앱을 만듭니다.
비즈니스 및 금융측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalCreate NEAR App
Scaffold a Rust smart contract or a React frontend for the NEAR blockchain.
Prerequisites
Install Node.js 22.22.2+, 24.15+, or 26+. For contracts, install Rust and cargo-near. Windows contract developers should use WSL.
Getting started
npx create-near-app@latest
Choose one project type:
- Smart contract: a basic auction using NEAR, or an advanced auction using fungible tokens with an NFT prize. Both use
near-sdk, with local integration tests usingnear-sandboxandnear-api. - Frontend: Next.js with App Router, or Vite with React. Both use TypeScript, NEAR Connect, and
near-api-jsto interact with the deployed Hello NEAR contract.
Follow the generated project's README for build, testing, and deployment instructions. See the contract quickstart or frontend quickstart to learn more.
CLI arguments
Create a Rust contract (defaults to the basic auction):
npx create-near-app@latest my-contract --contract
npx create-near-app@latest my-auction --contract --template auction-adv
Create a frontend:
npx create-near-app@latest my-web-app --frontend next-app --install
npx create-near-app@latest my-web-app --frontend vite-react --install
Choose exactly one of --contract or --frontend. --template auction|auction-adv applies only to contracts; --install runs npm install for a frontend.
Contract language arguments (--contract rs, --contract ts), none values, and the legacy next-page frontend are no longer supported. Use --contract for Rust and --frontend next-app for Next.js App Router.
Contributing
npm install
npm test
npm run lint
Package versions follow stable releases. TypeScript stays on 6.0 while the lint/test tools require it; the Next.js template uses ESLint 9 because its React lint plugins do not yet support ESLint 10. The scaffolder and Vite template use ESLint 10.
Templates live in templates/contracts/auction, templates/contracts/auction-adv, and templates/frontend/{next-app,vite-react}. Contract templates follow auctions-tutorial; frontend wallet integration follows hello-near-examples.
Run npm run test-e2e to scaffold and test both contracts and build and lint both frontends. This requires the Rust toolchain and cargo-near, and downloads dependencies and the NEAR sandbox binary.
Use Conventional Commits for changes. Maintainers with npm publish and GitHub repository access can publish with npm run release (requires GITHUB_TOKEN).
Getting help
Read the documentation or join Discord.
License
Distributed under the MIT and Apache 2.0 licenses. See LICENSE and LICENSE-APACHE.
관련 프로젝트 살펴보기
불러오는 중…