Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nordcloud/serverless-boilerplate
Serverless project template
https://github.com/nordcloud/serverless-boilerplate
mocha nodejs serverless serverless-framework
Last synced: about 1 month ago
JSON representation
Serverless project template
- Host: GitHub
- URL: https://github.com/nordcloud/serverless-boilerplate
- Owner: nordcloud
- License: mit
- Created: 2016-03-02T19:50:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-17T02:09:28.000Z (over 1 year ago)
- Last Synced: 2024-10-01T05:52:01.720Z (about 1 month ago)
- Topics: mocha, nodejs, serverless, serverless-framework
- Language: JavaScript
- Size: 1.78 MB
- Stars: 82
- Watchers: 9
- Forks: 15
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nordcloud Serverless Boilerplate
The Nordcloud serverless-boilerplate is a project template for new serverless services. Contents of the template:
* plugin [serverless-mocha-plugin](https://github.com/nordcloud/serverless-mocha-plugin): enable test driven development using mocha, creation of functions from command line
* plugin [serverless-offline](https://github.com/dherault/serverless-offline): run your services offline for e.g. testing
* plugin [serverless-webpack](https://github.com/elastic-coders/serverless-webpack): optimize pacakge size with webpack
* plugin [serverless-kms-secrets](https://github.com/nordcloud/serverless-kms-secrets): ease handling of KMS encrypted secrets
* plugin [serverless-plugin-custom-roles](https://www.npmjs.com/package/serverless-plugin-custom-roles): enable setting roles on a per function basis
* plugin [serverless-plugin-split-stacks](https://github.com/dougmoscrop/serverless-plugin-split-stacks): Split Cloudformation stack to multiple stacks to overcome the 200 resource limit
* file `serverless.yml.json`: Register plugins above
* file `webpack.config.js`: Settings for webpack-plugin
* file `templates/function.ejs`: Template to use for new functions## Creating new project
With Serverless Framework v1.5 and later, a new project based on the project template is initialized with the command
```
> sls install -u https://github.com/nordcloud/serverless-boilerplate -n myservicename
> cd myservicename
> npm install
```## Testing vulnerabilities
Test vulnerabilities with
```
> npm audit
```
(NSP is no longer available)## Comparing setup with boilerplate
You can compare your project setup (dependencies, devdependencies, scripts) with the boilerplate using the command
```
> npm run compare-boilerplate
```The script reports only for items that are in the boilerplate and differ from your current project.
## TODO
Please see project GitHub [issue tracker](https://github.com/nordcloud/serverless-boilerplate/issues).
## Release History
* 2016/11/02 - v1.0.0 - Initial version for Serverless 1.0
## License
Copyright (c) 2016 [Nordcloud](https://www.nordcloud.com/), licensed for users and contributors under MIT license.
https://github.com/nordcloud/serverless-boilerplate/blob/master/LICENSE-MIT