serverless-api:serverless-api使用节点

时间:2021-05-02 10:50:23
【文件属性】:
文件名称:serverless-api:serverless-api使用节点
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-02 10:50:23
javascript api mongo promises mongodb REST API无服务器 使用nodejs,无服务器,lambda函数和mongo集群作为数据库的CRUD API。 -步骤1.建立目录 -run : sls create -t aws-nodejs -p rest-api && cd rest-api -This command will scaffold out all the necessary files and code to create our Lambda functions and API Gateway events. It will do this in the path we gave it with the -p flag. Meaning it will create a directory named rest-api. 步骤2.安装模块 -run : npm install -This will dow
【文件预览】:
serverless-api-master
----.eslintrc(560B)
----models()
--------Note.js(176B)
----README.md(2KB)
----serverless.yml(1KB)
----handler.js(3KB)
----.gitignore(92B)
----db.js(425B)
----package.json(542B)

网友评论