百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

typescript-node

> 数据库
开源

:clipboard: TypeScript 和 NodeJS 项目模板。

368 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

:clipboard: TypeScript 和 NodeJS 项目模板。

typescript-node

Template for building nodejs and typescript services. The main goal of this boilerplate is to offer a good Developer Experience (eg: debugging, watch and recompile) by providing the following features out of the box:

Features

  • Language - TypeScript
  • REST API - koa2
  • Graceful Shutdown - Pattern
  • HealthCheck - Pattern /health
  • SQL Database & Migrations - knex
  • Authentication and Authorization - JWT
  • Validation - Joi
  • Testing - Mocha Chai + Sinon Coverage
  • Code Style - Prettier
  • Git Hooks - Husky

Installation & Run

  • npm install - Install dependencies
  • npm run start - Start application (It needs a mysql database)

Running with Docker

  • docker-compose up (compose and run, it also creates the mysql database)
  • docker-compose down (Destroy application and mysql containers)

Useful npm commands

  • npm run build - Transpile TypeScript code
  • npm run clean - Remove dist, node_modules, coverage folders
  • npm run coverage - Run NYC coverage
  • npm run lint - Lint your TypeScript code
  • npm run start:dev - Run application in dev mode (debug & watch). Debug mode is running on port 5858 (open chrome://inspect/#devices).
  • npm run test - Run unit tests
  • npm run test:integration - Run integration tests
  • npm run test:all - Run Unit and Integration tests

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptdockerkoa2mysqlnodejs

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库