The easiest way to get started is with our fully hosted IDE environment. We have a number of pre-built templates which you can use as starter apps.
Go to NEAR Studio and select the "Counter Smart Contract" template and then click "Create".
Click "Run" to see the app running!
The app will open in a new window.
Environment: The smart contract for this are deployed to the main TestNet while the front end is deployed to our hosted app.near.ai site.
To better understand the project directory of a standard NEAR project, and to learn about the files you'll normally be editing, take a look at our NEAR Project File Structure deep dive.
For documentation on how to get started writing and calling smart contract functions, take a look here:
The "Run" button will deploy your front end (everything in the
src/ folder) to our hosted service on
app.near.ai/YOUR_UNIQUE_URL/. It's similar to Github Pages.
Share the URL with someone else and they will be able to interact with your application. Make sure to remember the trailing
The "Fork" button will duplicate the existing code in a new page with a new URL. If you don't want to lose the old URL, copy/paste it somewhere.
Once you have tested out the NEAR Studio IDE, check out the Block Explorer (aka Debugger).
Navigate to https://studio.nearprotocol.com/debugger/ in your browser to see information on specific blocks and transactions from those blocks. This is a useful tool when you are trying to debug your contracts.