JSPM

  • Created
  • Published
  • Downloads 61
  • Score
    100M100P100Q60975F
  • License (MIT AND Apache-2.0)

generate new near blank project with different type

Package Exports

  • create-near-app

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (create-near-app) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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 12+. Note: if using Node version 13 please be advised that you will need version >= 13.7.0

Getting Started

To create a new NEAR project with default settings, you just need one command

Using npm's npx:

npx create-near-app [options] new-awesome-project

Or, if you prefer yarn:

yarn create near-app [options] new-awesome-project

Without any options, this will create a project with a vanilla JavaScript frontend and an AssemblyScript smart contract

Other options:

  • --frontend=react – use React for your frontend template
  • --contract=rust – use Rust for your smart contract

Develop your own Dapp

Follow the instructions in the README.md in the project you just created! 🚀

Getting Help

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

Contributing

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/vanilla
  • now you can run yarn to install dependencies and yarn dev to run the local development server, just like you can in a new app created with create-near-app

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

  1. Get write-access to the GitHub repository
  2. Get publish-access to the NPM package

Then run one script:

yarn release

Since we use commitlint to ensure that all commits follow the Conventional Commit spec, our release script is able to automatically bump version numbers and update the CHANGELOG based on commit history.

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.