This is a Node TS server template for interacting with the Vara Network using SailsCalls (Sails). The server provides endpoints to read the program state and send messages to a specified program on the Vara Network.
- Node.js (v18 or higher)
- Yarn
- Vara Network account and access to a program
-
Clone the repository:
git clone https://github.com/Vara-Lab/Node-Ts-Server-Sails-Vara-Template.git cd Node-Ts-Server-Sails-Vara-Template
-
Install dependencies:
yarn
Update the server code with your own program ID and idl if necessary. You can find these values in the index.js
file.
To start the server in dev mode, run:
yarn dev