项目作者: alextanhongpin

项目描述 :
Sample architecture for Koa.js projects with TypeScript based on Clean Architecture
高级语言: TypeScript
项目地址: git://github.com/alextanhongpin/typescript-koa-architecture.git


typescript-koa-microservice

Sample microservice architecture using TypeScript and Koa.js. Based on the book Clean Architecture.

Includes the following:

  • database connection
  • logger
  • tracing with OpenTracing (node-jaeger-client)
  • context for data propagation
  • requestId in logging
  • JSON Schema for validation

MySQL 8.0.4

Any version above 8.0.3 will encounter the issue below, and nodejs mysql library will throw error (as of 18th June 2018). Revert back to 8.0.3 first.

https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-4.html

  1. { Error: Client does not support authentication protocol requested by server; consider upgrading MySQL client
  2. message: 'Client does not support authentication protocol requested by server; consider upgrading MySQL client',
  3. code: 'ER_NOT_SUPPORTED_AUTH_MODE',
  4. errno: 1251,
  5. sqlState: '08004',
  6. sqlMessage: 'Client does not support authentication protocol requested by server; consider upgrading MySQL client' }

Create basic table

  1. mysql > create table users (name TEXT);