https://github.com/claudiajs/claudia-api-builder
Use AWS API Gateway as if it were a lightweight JavaScript web server
https://github.com/claudiajs/claudia-api-builder
Last synced: 30 days ago
JSON representation
Use AWS API Gateway as if it were a lightweight JavaScript web server
- Host: GitHub
- URL: https://github.com/claudiajs/claudia-api-builder
- Owner: claudiajs
- License: mit
- Created: 2016-02-13T10:21:12.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-01-27T18:10:51.000Z (over 3 years ago)
- Last Synced: 2025-03-17T20:21:18.746Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 299 KB
- Stars: 249
- Watchers: 17
- Forks: 66
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Claudia API Builder
[](https://www.npmjs.com/package/claudia-api-builder)
[](https://www.npmjs.com/package/claudia-api-builder)
[](https://github.com/claudiajs/claudia-api-builder/blob/master/LICENSE)
[](https://travis-ci.org/claudiajs/claudia-api-builder)
[](https://gitter.im/claudiajs/claudia?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)Claudia API Builder makes it possible to use AWS API Gateway as if it were a lightweight JavaScript web server, so it helps developers get started easily and reduces the learning curve required to launch web APIs in AWS. [Check out this video to see how to create and deploy an API in under 5 minutes](https://youtu.be/lsXHWy4b-I0).
[](https://youtu.be/lsXHWy4b-I0)
The API Builder helps you by:
* setting up AWS API Gateway Web interfaces for Lambda projects easily, the way JavaScript developers expect out of the box
* routing multiple AWS API Gateway end-points to a single Lambda function, so that you can develop and deploy an entire API simpler and avoid inconsistencies.
* handling synchronous responses or asynchronous promises, so you can develop easier
* configuring response content types and HTTP codes easily
* enabling you to set-up post-install configuration steps, so that you can set up the deployments easierThe API builder is designed to work with [Claudia](https://github.com/claudiajs), and add minimal overhead to client projects.
## Simple example
```javascript
var ApiBuilder = require('claudia-api-builder'),
api = new ApiBuilder(),
superb = require('superb');module.exports = api;
api.get('/greet', function (request) {
return request.queryString.name + ' is ' + superb.random();
});
```For a more examples, see the [Web API Example Projects](https://github.com/claudiajs/example-projects#web-api)
## Getting started
* Check out the [Getting Started](https://claudiajs.com/tutorials/hello-world-api-gateway.html) guide for a basic Hello-World style example
* Check out the [API Documentation](docs/api.md) for a detailed guide on handling requests, customising responses and configuring your API## Questions, suggestions?
[](https://gitter.im/claudiajs/claudia?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)## License
[MIT](LICENSE)