Skip to content

Sample architecture for Koa.js projects with TypeScript based on Clean Architecture

Notifications You must be signed in to change notification settings

alextanhongpin/typescript-koa-architecture

Repository files navigation

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

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

Create basic table

mysql > create table users (name TEXT);

About

Sample architecture for Koa.js projects with TypeScript based on Clean Architecture

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published