软件开发调试全攻略:从无服务器到全栈的深度探索
无服务器调试
无服务器调试是一个颇具挑战的过程,虽然本地调试简单的 Web 服务是可行的,但效果并不理想。以下是必要的工具和账户:
1. Docker,安装说明:https://docs.docker.com/get-docker/
2. AWS 账户,创建和激活指南:http://aws.amazon.com/premiumsupport/knowledge-center/create-and-activate-aws-account/
3. AWS SAM CLI,安装指南:https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html
4. 完整项目:https://github.com/shai-almog/HelloLambda
5. 入门指南:https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-getting-started-hello-world.html
启动本地 API 服务,使用命令:
sam local start-api
使用 curl 命令触发端点:
$ curl http:/
超级会员免费看
订阅专栏 解锁全文
1218

被折叠的 条评论
为什么被折叠?



