Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/herculesinc/nova.azure-functions
Serverless action-based Web API framework written in TypeScript
https://github.com/herculesinc/nova.azure-functions
api-framework azure-functions nodejs nova
Last synced: about 23 hours ago
JSON representation
Serverless action-based Web API framework written in TypeScript
- Host: GitHub
- URL: https://github.com/herculesinc/nova.azure-functions
- Owner: herculesinc
- License: mit
- Created: 2019-01-09T04:21:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-01T01:36:48.000Z (over 5 years ago)
- Last Synced: 2023-09-19T14:14:52.759Z (about 1 year ago)
- Topics: api-framework, azure-functions, nodejs, nova
- Language: TypeScript
- Size: 563 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nova Azure Functions
Web API framework for Azure Functions written in TypeScript.## Install
```sh
$ npm install --save @nova/azure-functions
```## Examples
index.js
```JavaScript
const nova = require('@nova/azure-functions');
const controller = new nova.HttpController();controller.set('/', {
get: {
action: async function (inputs) {
this.log.info('Some debug message');
return {
message: `Hello ${inputs.name}!`
};
}
},
post: {
action: async function (inputs) {
this.log.info('Some other debug message');
const userId = inputs.userId;
// make some updates here
}
}
});module.exports = controller;
```function.json
```JSON
{
"disabled": false,
"entryPoint": "handler",
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "request",
"route": "{*route}"
},
{
"type": "http",
"direction": "out",
"name": "$return"
}
]
}```
## License
Copyright (c) 2019 Credo360, Inc.Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.