【文件属性】:
文件名称:four-steps-from-javascript-to-typescript
文件大小:29KB
文件格式:ZIP
更新时间:2021-05-10 03:38:15
JavaScript
从JavaScript到TypeScript的4个步骤
此仓库向您展示了将项目从JavaScript更新为TypeScript所需要执行的步骤。
它基于的建议,该建议 。
运行应用程序
首先克隆或下载然后进入目录。
git clone https://github.com/philnash/four-steps-from-javascript-to-typescript.git
cd four-steps-from-javascript-to-typescript
安装依赖项:
npm install
运行应用程序。
npm start
现在,您可以访问http://localhost:3000并查看静态HTML页面,或向http://localhost:3000/webhooks/messages发出POST请求,并获得TwiML格式的,以便将收到的SMS消息响应到。
c
【文件预览】:
four-steps-from-javascript-to-typescript-main
----src()
--------server.js(261B)
--------config.js(56B)
--------lib()
--------index.js(170B)
--------routes()
----LICENSE(1KB)
----README.md(1KB)
----CODE_OF_CONDUCT.md(5KB)
----.gitignore(2KB)
----package-lock.json(65KB)
----package.json(490B)
----static()
--------index.html(1KB)