【文件属性】:
文件名称:oilerplate-typescript-rest-docker:如何在启用调试的情况下使用TypeScript和Docker构建REST服务(例如WebStorm或VSCode)
文件大小:1.37MB
文件格式:ZIP
更新时间:2021-01-30 10:13:59
docker typescript rest continuous-integration continuous-testing
样板文字脚本休息码头工人
如何使用TypeScript和Docker构建启用了调试功能的REST服务(例如WebStorm或VSCode)。
安装
# Clone the directory
$ git clone https://github.com/stefanwalther/boilerplate-typescript-rest-docker
# Install the local dependencies
# - Not necessary if you just want to use/test the docker containers
$ npm install
开发流程
开发环境包含以下内容:
一个名为rest-service的./src容器,其中包含./src定义的REST服务器。
REST服务在http://localhost:8000公开。
(使用 ):对./src文件夹进行更改后,将再次重新编译TypeScript文件并重新启动服务器。 因此,您可以对本地的rest-service容器运行集成测试,这是在进行任何更改后立即进行的。
通过端口5858启
【文件预览】:
boilerplate-typescript-rest-docker-master
----.eslintrc.json(332B)
----docker()
--------docker-compose.ci.yml(456B)
--------docker-compose.dev.yml(266B)
--------rest-service-integration()
--------rest-service()
--------docker-ci.sh(1KB)
----src()
--------index.ts(92B)
--------server.ts(1KB)
--------routes()
----.travis.yml(517B)
----tsconfig.json(478B)
----test()
--------integration()
--------lib()
--------mocha.conf.js(74B)
--------unit()
--------test-config.ts(116B)
----tslint.json(1KB)
----README.md(5KB)
----nodemon.json(23B)
----docs()
--------images()
----renovate.json(41B)
----.editorconfig(422B)
----.gitignore(91B)
----package.json(2KB)