8.1.0 • Published 6 months ago

create-near-app v8.1.0

Weekly downloads
54
License
(MIT AND Apache-2...
Repository
github
Last release
6 months ago

Create NEAR App

Gitpod Ready-to-Code

Quickly build apps backed by the NEAR blockchain

Prerequisites

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.

Getting Started

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! 🚀

Contracts

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.

WebApps

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 than npm and yarn.

Using CLI arguments to run 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.

Getting Help

Check out our documentation or chat with us on Discord. We'd love to hear from you!

Contributing to create-near-app

To make changes to create-near-app itself:

  • clone the repository (Windows users, use git clone -c core.symlinks=true)
  • in your terminal, enter one of the folders inside templates, such as templates/frontend/next-app
  • now you can run 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

About commit messages

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

Deploy create-near-app

If you want to deploy a new version, you will need two prerequisites:

  1. Get publish-access to the NPM package
  2. Get write-access to the GitHub repository
  3. Obtain a personal access token (it only needs the "repo" scope).
  4. Make sure the token is available as an environment variable called GITHUB_TOKEN

Then run one script:

npm run release

Or just release-it

License

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.

8.1.0

6 months ago

7.0.3

10 months ago

8.0.0

9 months ago

7.0.2

11 months ago

7.0.1

1 year ago

7.0.2-beta.0

1 year ago

7.0.0

1 year ago

7.0.0-beta.0

1 year ago

6.4.5

1 year ago

6.4.4-beta.0

1 year ago

6.4.4

1 year ago

6.4.3

1 year ago

6.4.2

1 year ago

6.4.1-beta.0

1 year ago

6.4.1

1 year ago

6.4.0-beta.0

1 year ago

6.4.0

1 year ago

6.3.0

1 year ago

6.3.1

1 year ago

6.2.1

1 year ago

6.1.1

1 year ago

6.2.0

1 year ago

6.1.0

1 year ago

6.0.3

1 year ago

6.0.2

2 years ago

6.0.0-beta.3

2 years ago

6.0.0-beta.4

2 years ago

6.0.0-beta.5

2 years ago

6.0.0-beta.0

2 years ago

6.0.0-beta.1

2 years ago

6.0.0-beta.2

2 years ago

6.0.1-beta.0

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

5.3.1

2 years ago

5.3.1-beta.0

2 years ago

5.3.1-beta.1

2 years ago

5.3.1-beta.2

2 years ago

5.3.1-beta.3

2 years ago

5.3.0

2 years ago

5.3.0-beta.0

2 years ago

5.3.0-beta.2

2 years ago

5.3.0-beta.1

2 years ago

5.1.2

3 years ago

5.2.2

3 years ago

5.2.1

3 years ago

5.2.0

3 years ago

5.2.1-0

3 years ago

5.1.1

3 years ago

5.1.0

3 years ago

5.0.0-rc.0

3 years ago

5.0.0-rc.1

3 years ago

4.1.0-rc.0

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.1.0

3 years ago

4.0.0-beta.2.0

3 years ago

4.0.0

3 years ago

4.0.0-beta.3.0

3 years ago

4.0.0-beta.1.0

3 years ago

3.0.0-pre.4.0

3 years ago

3.0.1-pre.13.0

3 years ago

3.0.0-pre.6.0

3 years ago

3.0.1-pre.1.0

3 years ago

3.0.1-pre.3.0

3 years ago

3.0.0-pre.2.0

3 years ago

4.0.0-pre.2.0

3 years ago

3.0.1-pre.11.0

3 years ago

3.0.1-pre.5.0

3 years ago

3.0.1-pre.9.0

3 years ago

3.0.0-pre.0

3 years ago

3.0.0

3 years ago

3.0.1-pre.14.0

3 years ago

3.0.0-pre.3.0

3 years ago

3.0.0-pre.5.0

3 years ago

3.0.1-pre.10.0

3 years ago

3.0.1-pre.2.0

3 years ago

3.0.1-pre.12.0

3 years ago

3.0.1-pre.4.0

3 years ago

3.0.0-pre.1.0

3 years ago

3.0.1-pre.6.0

3 years ago

3.0.1-pre.8.0

3 years ago

3.0.0-pre.7.0

3 years ago

3.1.0

3 years ago

2.0.1

4 years ago

1.4.0

4 years ago

2.0.0

4 years ago

1.4.0-preview

4 years ago

1.3.6

4 years ago

1.3.5

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.9.3

5 years ago

0.9.2

5 years ago

0.9.0

5 years ago

0.9.1

5 years ago

0.8.0

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.0

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.2

5 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago