Set up SOMOD and start creating Serverless Modules in minutes.
SOMOD is a CLI toolset developed and distributed using NPM (NodeJs Package Manager). Before working with SOMOD, download and install the NodeJs for your working environment.
There are two ways to set up a SOMOD Module project.
Use the initialization command.
npx create-somod
Running this command creates an npm package called my-module
or the supplied module name with all the necessary configurations.
The readme of create-somod explains the available options for this command
OR
Manual setup
Otherwise, the SOMOD Module project can be created manually by following these steps.
npm init
inside it.npm install somod --save-dev
commandserverless
modulenpm install @types/aws-lambda aws-sdk somod-middleware --save-dev
ui
modulenpm install @types/react react next react-dom --save-dev
package.json
as described in SOMOD's package.json referencetsconfig.somod.json
to be available in the project root to compile typescript to javascript.
SOMOD's tsconfig.somod.json reference provides the details of configuring tsconfig.somod.json
SOMOD works on the Serverless Platform from AWS. Install AWS SAM CLI and configure it to deploy SOMOD modules into AWS. The Getting Started guide helps you to install and configure AWS SAM.
In the next chapter, let us start developing the SOMOD module. Happy coding.
Write an email to opensource@sodaru.com