Socket
Book a DemoInstallSign in
Socket

coppa

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coppa

🏇 A CLI tool for local development of google cloud functions

1.2.1
latest
Source
npmnpm
Version published
Weekly downloads
17
13.33%
Maintainers
1
Weekly downloads
 
Created
Source

npm License PRs Welcome

🏇 Coppa

Lightweight CLI tool for local developement of serverless Google Cloud Functions

Coppa was made for developers working with google cloud serverless functions. Coppa creates a local dev server that mimicks deployed cloud functions.

Coppa is different from Google Cloud Functions NodeJS Emulator because it does not require devs to deploy each function locally. Coppa just reads your yaml file and your main index file and spins up a quick dev server for easy and painless debugging and development.

Coppa even provides a free documentation page auto generated based on your functions, by leveraging the npm package quantor.

Install

This is a CLI tool so it's best to install globally for convenience.

Yarn:

yarn global add coppa

NPM:

npm i -g coppa

Usage

cd into your app directory that contains your serverless.yml file and your main index.js file that holds all your cloud functions, then run:

coppa start

This command will start the dev server using the default arguments for locating files, which is ./serverless.yml for the serverless yaml, and ./index.js for the main entry point.

These can be changed by passing in flags to Coppa. To see all the flags, run:

coppa start --help

To use any flag, include it in the command:

coppa start -c path/to/serverless.yml -p 9001

Hot reloading with nodemon

nodemon --exec coppa start

Flags

Here are all the available flags for the start command.

  • -c, --config [path] Path to serverless config file (default: ./serverless.yml)
  • -e, --entry [path] Path to JS entry point file (default: ./index.js)
  • -s, --stage [stage] Stage to be used
  • -p, --port [port] Port for server to use (default: 8080)

Keywords

CLI

FAQs

Package last updated on 12 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.