https://github.com/portalnetwork/plain-near
https://github.com/portalnetwork/plain-near
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/portalnetwork/plain-near
- Owner: PortalNetwork
- Created: 2019-12-06T02:55:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-06T02:56:34.000Z (over 6 years ago)
- Last Synced: 2025-05-30T07:24:09.158Z (about 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Template for NEAR dapps
### Requirements
##### IMPORTANT: Make sure you have the latest version of NEAR Shell and Node Version > 10.x
1. node and npm
2. near shell
install with
```
npm i -g near-shell
```
3.(optional) install yarn to build
```
npm i -g yarn
```
### To run on testnet
Step 1: Create account for the contract and deploy the contract.
In the terminal
```
near login
```
click the link and create your own contract ID
Step 2:
modify src/config.js line that sets the contractName. Set it to id from step 1.
```
const CONTRACT_NAME = "contractId"; /* TODO: fill this in! */
```
Step 3:
Finally, run the command in your terminal.
```
npm install
npm run(yarn) prestart
npm run(yarn) start
```
The server that starts is for static assets and by default serves them to localhost:5000. Navigate there in your browser to see the app running!