Using Your Local Node.js Environment to Deploy Blockspring Functions

Generate your first Blockspring Node.js Function

In this step you'll generate a starter Blockspring function written in Node.js.

The CLI tool comes with blockspring new, a handy function generator. Pass in your language (js) and your function title to generate a Node.js starter function:

$ blockspring new js "Best function ever"
Creating directory best-function-ever
Creating script file best-function-ever/block.js
Creating config file best-function-ever/blockspring.json

You now have your first Blockspring function. The CLI tool created a new directory for your function populated with the two key files. blockspring.json holds your function's Node.js code and block.js holds your function's configurations. We'll dive deeper into these files in later steps.