{"id":22744209,"url":"https://github.com/rametta/coppa","last_synced_at":"2025-04-14T09:22:30.213Z","repository":{"id":57207211,"uuid":"184091941","full_name":"rametta/coppa","owner":"rametta","description":"🏇 A CLI tool for local development of serverless Google Cloud Functions","archived":false,"fork":false,"pushed_at":"2022-12-09T21:38:29.000Z","size":37,"stargazers_count":12,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T10:50:27.078Z","etag":null,"topics":["cli","express","gcf","google-cloud-functions","local-development","nodejs","serverless","tool"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rametta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-29T14:59:55.000Z","updated_at":"2022-11-03T21:17:20.000Z","dependencies_parsed_at":"2023-01-25T21:46:41.796Z","dependency_job_id":null,"html_url":"https://github.com/rametta/coppa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rametta%2Fcoppa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rametta%2Fcoppa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rametta%2Fcoppa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rametta%2Fcoppa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rametta","download_url":"https://codeload.github.com/rametta/coppa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681492,"owners_count":21144700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","express","gcf","google-cloud-functions","local-development","nodejs","serverless","tool"],"created_at":"2024-12-11T01:41:01.637Z","updated_at":"2025-04-14T09:22:30.193Z","avatar_url":"https://github.com/rametta.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/coppa.svg)](http://npm.im/coppa)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-blue.svg)](http://makeapullrequest.com)\n\n# 🏇 Coppa\n\n\u003e Lightweight CLI tool for local developement of serverless Google Cloud Functions\n\nCoppa was made for developers working with google cloud serverless functions. Coppa creates a local dev server that mimicks deployed cloud functions.\n\nCoppa is different from [Google Cloud Functions NodeJS Emulator](https://cloud.google.com/functions/docs/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.\n\nCoppa even provides a free documentation page auto generated based on your functions, by leveraging the npm package [quantor](https://www.npmjs.com/package/quantor).\n\n## Install\n\nThis is a CLI tool so it's best to install globally for convenience.\n\nYarn:\n\n```sh\nyarn global add coppa\n```\n\nNPM:\n\n```sh\nnpm i -g coppa\n```\n\n## Usage\n\n`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:\n\n```sh\ncoppa start\n```\n\nThis 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.\n\nThese can be changed by passing in flags to Coppa. To see all the flags, run:\n\n```sh\ncoppa start --help\n```\n\nTo use any flag, include it in the command:\n\n```sh\ncoppa start -c path/to/serverless.yml -p 9001\n```\n\nHot reloading with nodemon\n\n```sh\nnodemon --exec coppa start\n```\n\n## Flags\n\nHere are all the available flags for the `start` command.\n\n- `-c, --config [path]` Path to serverless config file (default: ./serverless.yml)\n- `-e, --entry [path]` Path to JS entry point file (default: ./index.js)\n- `-s, --stage [stage]` Stage to be used\n- `-p, --port [port]` Port for server to use (default: 8080)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frametta%2Fcoppa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frametta%2Fcoppa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frametta%2Fcoppa/lists"}