Skip to content

Vara-Lab/Node-Ts-Server-Sails-Vara-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node TS Server Template with SailsCalls (Sails) for Vara Network

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.

Prerequisites

  • Node.js (v18 or higher)
  • Yarn
  • Vara Network account and access to a program

Installation

  1. Clone the repository:

    git clone https://github.com/Vara-Lab/Node-Ts-Server-Sails-Vara-Template.git
    cd Node-Ts-Server-Sails-Vara-Template
  2. Install dependencies:

    yarn

Configuration

Update the server code with your own program ID and idl if necessary. You can find these values in the index.js file.

Running the Server

To start the server in dev mode, run:

yarn dev

About

Node-Ts Server Template with SailsCalls for Vara Network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published