https://github.com/jameskyburz/azure-cloud-function-http-server
run your http server as a google cloud function
https://github.com/jameskyburz/azure-cloud-function-http-server
azure-functions faas http http-server in-memory-http-server lambda nodejs proxy serverless
Last synced: about 1 year ago
JSON representation
run your http server as a google cloud function
- Host: GitHub
- URL: https://github.com/jameskyburz/azure-cloud-function-http-server
- Owner: JamesKyburz
- Created: 2018-11-30T09:09:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-13T12:51:16.000Z (over 6 years ago)
- Last Synced: 2025-02-13T05:45:00.370Z (about 1 year ago)
- Topics: azure-functions, faas, http, http-server, in-memory-http-server, lambda, nodejs, proxy, serverless
- Language: JavaScript
- Homepage: https://github.com/JamesKyburz/azure-cloud-function-http-server
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# azure cloud function http server
# WIP NOT TESTED YET
Call your http server stack code using an in memory http listener. No sockets needed.
[](https://github.com/feross/standard)
[](https://travis-ci.org/JamesKyburz/azure-cloud-function-http-server)
[](https://npmjs.org/package/azure-cloud-function-http-server)
[](https://greenkeeper.io/)
## index.js
```javascript
require('http').createServer((req, res) => {
if (req.url === '/hello') return res.end('world')
})
.listen(5000)
```
## proxy.js
```javascript
exports.http = require('azure-cloud-function-http-server')
require('./index.js')
```
## serverless.yml
TODO give example
# license
[Apache License, Version 2.0](LICENSE)