Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🐳 TypeScript microservice on Docker with optimized defaults

License

NotificationsYou must be signed in to change notification settings

timothymiller/typescript-microservice

Repository files navigation

TypeScript Microservice starter project with batteries included.

🔔 Features

  • Code in ES6 TypeScript
  • ESLint & Prettier integration with VS Code extensions
  • Instant code reload in debug mode
  • JavaScript optimizations

🔩 Code Quality

  • ESLint - Airbnb JavaScript Style Guide
  • Prettier - Format code on save

💨 JavaScript Optimizations

  • Rollup
  • Tree-shaking
  • Optimize ES modules for faster native loading
  • Removesconsole.log statements from docker builds
  • CommonJS module format

🔨 Unit Testing

  • Mocha
  • Chai

🎬 Getting Started

yarn start

Execute source code with nodemon for live reloading of code changes.

yarn test

Run all *.test.ts files in test/ directory.

yarn build

Export app to prod/app.ts after running tsc & rollup.

🛥️ External Ports

If you wanted to extend this template to create an API server, you would do so in your docker-compose file utilizing the output image from this template or when running from the command line like this:

docker run -p <public_port>:<private_port> -d <image>

License

This Template is licensed under the GNU General Public License, version 3 (GPLv3).

Author

Timothy Miller

View my GitHub profile 💡

View my personal website 💻

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp