Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eduardoboucas/new-function
✨ A tiny utility for creating a new Netlify Function.
https://github.com/eduardoboucas/new-function
function netlify serverless
Last synced: 3 months ago
JSON representation
✨ A tiny utility for creating a new Netlify Function.
- Host: GitHub
- URL: https://github.com/eduardoboucas/new-function
- Owner: eduardoboucas
- License: mit
- Created: 2021-03-28T17:15:06.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-28T22:13:19.000Z (almost 4 years ago)
- Last Synced: 2024-10-22T20:55:19.588Z (4 months ago)
- Topics: function, netlify, serverless
- Language: JavaScript
- Homepage:
- Size: 350 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# ✨ New Function ✨
[![Build](https://github.com/eduardoboucas/new-function/workflows/Build/badge.svg)](https://github.com/eduardoboucas/new-function/actions)
[![Node](https://img.shields.io/node/v/new-function.svg?logo=node.js)](https://www.npmjs.com/package/new-function)A tiny utility for creating a new [Netlify Function](https://docs.netlify.com/functions/overview/).
From the root directory of your project, run:
```sh
npx new-function
```That's it! You'll get a new function created from [a template](https://github.com/eduardoboucas/new-function/blob/master/src/templates/javascript_function.js).
![Screenshot](https://user-images.githubusercontent.com/4162329/112762116-098e9c80-8ff6-11eb-9b10-ca823f3ec9d9.png)
> 💡 If you're looking for a more advanced starting point and different customization options, consider using the
> [Netlify CLI](https://cli.netlify.com/commands/functions#functionscreate).To develop the function locally, install the [Netlify CLI](https://cli.netlify.com) and run `netlify dev`.
Once you're ready to deploy, push the file to your repository. If you don't have continuous integration set up, you can use the CLI and run `netlify deploy`.