The easiest way to get started is to skip installing everything on your local machine and just use our fully hosted IDE environment. We have a number of pre-built templates which you can use as starter apps.
To do this:
Go to NEAR Studio and select the "ToDo MVC" template.
Click "Run" to see the app running!
The app will open in a new window.
Environment: The smart contract for this is deployed to our hosted single-node DevNet while the front end is deployed to our hosted app.near.ai site.
A few notes:
The code that runs on blockchain is in
The UI markup is in
Try changing any of these files. To see your changes, click the "Save" button, and then "Run" button.
Useful interactions with Studio:
The "Run" button will deploy your front end (the stuff in the
src/ folder) to our hosted service on
app.near.ai/YOUR_UNIQUE_URL/. It's sort of like 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.