This app was initialized with create-near-app
To run this project locally:
- Prerequisites: Make sure you've installed Node.js ≥ 12
- Install dependencies:
yarn install
- Run the local development server:
yarn dev
(seepackage.json
for a full list ofscripts
you can run withyarn
)
Now you'll have a local development environment backed by the NEAR TestNet!
Go ahead and play with the app and the code. As you make code changes, the app will automatically reload.
The frontend code lives in the /src
folder. /src/index.html
is a great
place to start exploring. Note that it loads in /src/index.js
, where you
can learn how the frontend connects to the NEAR blockchain.
near-cli is a command line interface (CLI) for interacting with the NEAR blockchain. It was installed to the local node_modules
folder when you ran yarn install
, but for best ergonomics you may want to install it globally:
yarn install --global near-cli
Or, if you'd rather use the locally-installed version, you can prefix all near
commands with npx
Ensure that it's installed with near --version
(or npx near --version
)
On Windows, if you're seeing an error containing EPERM
it may be related to spaces in your path. Please see this issue for more details.