Project Template
Directory structure
Orbs Lambda enforces a strict directory structure for your project. It is recommended to create a local fork of the official Orbs Lambda repo on GitHub:
https://github.com/orbs-network/orbs-lambda
The root of your project should contain a top-level directory with your unique ID
This directory should contain the file
index.js- the main entry point of your lambdaThis directory may contain any additional dependencies (
.jsand.jsonfiles)This directory may contain a test suite under the
testsubdirectoryTest suite files should have the
.spec.jssuffixThe tests directory may contain any additional dependencies (
.jsand.jsonfiles)
Any
package.jsonfiles should be found in the root
Setting up example
Assuming your local project working directory is my-lambda-project
git clone https://github.com/orbs-network/orbs-lambda my-lambda-projectAnd assuming your unique ID is unique-example
This is the expected directory structure:
Last updated