Skip to content

Savour-Deals/savour-api-lib

Repository files navigation

Savour Button API

Installation

Install the Node.js packages

$ npm install

Usage

Deploy project

$ serverless deploy

Deploy a single function

$ serverless deploy function --function <function name>

Running Tests

Run tests using

$ npm test

Run a single test

$ serverless invoke local --function <function name> --path <api name>/mocks/<file name>.json --stage dev --region us-east-1

Use Jest to run our tests. You can read more about setting up tests here.

--stage

Linting

We use ESLint to lint code via the serverless-bundle plugin.

Turn this off by adding the following to serverless.yml.

custom:
  bundle:
    linting: false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published