amazon-archives / aws-serverless-auth-reference-app

Serverless reference app and backend API, showcasing authentication and authorization patterns using Amazon Cognito, Amazon API Gateway, AWS Lambda, and AWS IAM.
Other
754 stars 193 forks source link

Offline mode / Local development? #26

Closed ejhayes closed 6 years ago

ejhayes commented 7 years ago

Is there any way to run this offline/locally? It looks like even the tests require the API to be deployed.

justonian commented 6 years ago

This project isn't meant for offline / local development, though you can create a separate entry point for testing and use local API emulation with Lambda. Alternatively, you can also use the open source Express project to run Express.js apps in a Lambda container then package up the entire thing as one or more Lambda functions then map API Gateway to it appropriately. This approach if fully testable locally, with the exception of any API Gateway mapping templates you use.

Let me know if you have further questions.