n2-system-inputs-service

1.0.0 • Public • Published

N2 System Inputs Service

Requirements

  • Node.js (18+)
  • Serverless (for deploying and testing your functions locally)
  • Docker (for running tests)

Prerequisities

  1. npm install

How to run tests

  1. npm install
  2. npm run test:int (or npm run test:int:docker if you would like to use docker)

Usage

Deployment

In order to deploy the example, you need to run the following command:

$ serverless deploy

After running deploy, you should see output similar to:

Deploying aws-node-project to stage dev (us-east-1)

✔ Service deployed to stack aws-node-project-dev (112s)

functions:
  hello: aws-node-project-dev-hello (1.5 kB)

Local development

You can invoke your function locally by using the following command:

serverless invoke local --function hello

Which should result in response similar to the following:

{
    "statusCode": 200,
    "body": "{\n  \"message\": \"Go Serverless v3.0! Your function executed successfully!\",\n  \"input\": \"\"\n}"
}

Readme

Keywords

none

Package Sidebar

Install

npm i n2-system-inputs-service

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

248 kB

Total Files

68

Last publish

Collaborators

  • jordanguinn