Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Add service and adapter to koa-ts #74

Open
osirisguitar opened this issue Sep 16, 2022 · 0 comments
Open

Suggestion: Add service and adapter to koa-ts #74

osirisguitar opened this issue Sep 16, 2022 · 0 comments
Labels
enhancement New feature or request koa-ts

Comments

@osirisguitar
Copy link
Member

Add a service with:

src/
serviceName/
index.ts
types.ts
adapters/
postgresAdapter/
index.ts

Also make api.ts import the routes related to the service from serviceName/index.ts instead of being declared in api.ts itself.

My suggestion is to put adapter under service instead of under src/adapters to prepare for a future extraction of serviceName to a separate micro service (all dependencies under service).

@alexanderczigler alexanderczigler added the enhancement New feature or request label Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request koa-ts
Projects
None yet
Development

No branches or pull requests

2 participants