Giter VIP home page Giter VIP logo

create-near-app's Introduction

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

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

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:

yarn 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.

create-near-app's People

Contributors

dependabot-preview[bot] avatar janedegtiareva avatar chadoh avatar vgrichina avatar mikedotexe avatar dependabot[bot] avatar icerove avatar volovyks avatar luciotato avatar faragly avatar thisisjoshford avatar kcole16 avatar mattlockyer avatar armujahid avatar chrisirhc avatar maxgraey avatar robert-zaremba avatar amgando avatar austinabell avatar kulame avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.