Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
create-near-app
Advanced tools
Quickly build apps backed by the NEAR blockchain
Make sure you have a current version of Node.js installed – we are targeting versions 16+
for JS contracts and 18+
for frontend/gateways.
Read about other prerequisites in our docs.
To create a new NEAR project run this and follow interactive prompts:
npx create-near-app@latest
Follow the instructions in the README.md in the project you just created! 🚀
You can create contracts written in:
Javascript
Rust
::: We strongly recommend you to follow our smart contract quickstart if you are new to NEAR contracts. :::
For testing we use a sandboxed environment. You can write the tests in JavaScript or Rust.
You can create a web application in:
::: We strongly recommend you to follow our web app quickstart if you are new to NEAR WebApps. :::
Consider using
pnpm
to handle the frontend, since it is much faster thannpm
andyarn
.
create-near-app
This CLI supports arguments to skip interactive prompts:
npx create-near-app
<project-name>
--frontend next-app|next-page|none
--contract js|rs|none
--install
Use --install
to automatically install dependencies from all package.json
files.
When using arguments, all arguments are required, except for --install
.
Check out our documentation or chat with us on Discord. We'd love to hear from you!
create-near-app
To make changes to create-near-app
itself:
git clone -c core.symlinks=true
)templates
, such as templates/frontend/next-app
pnpm install
to install dependencies and pnpm run dev
to run the local development server, just like you can in a new app created with create-near-app
create-near-app
uses semantic versioning and auto-generates nice release notes & a changelog all based off of the commits. We do this by enforcing Conventional Commits. In general the pattern mostly looks like this:
type(scope?): subject #scope is optional; multiple scopes are supported (current delimiter options: "/", "\" and ",")
Real world examples can look like this:
chore: run tests with GitHub Actions
fix(server): send cors headers
feat(blog): add comment section
If your change should show up in release notes as a feature, use feat:
. If it should show up as a fix, use fix:
. Otherwise, you probably want refactor:
or chore:
. More info
create-near-app
If you want to deploy a new version, you will need two prerequisites:
GITHUB_TOKEN
Then run one script:
npm run release
Or just release-it
This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0). See LICENSE and LICENSE-APACHE for details.
FAQs
Quickly scaffold your dApp on NEAR Blockchain
We found that create-near-app demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.