Skip to content

Commit be493c1

Browse files
authored
Feature/add service structure (#341)
* .nvmrc for version 18 * Added service file structure for koa-ts. Also change prettier to no semicolons, and removed extraneous request logging to console. * Updated readme
1 parent de83ca2 commit be493c1

File tree

14 files changed

+5735
-119
lines changed

14 files changed

+5735
-119
lines changed

templates/koa-ts/.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/*
1+
v18.*

templates/koa-ts/.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"useTabs": false,
44
"singleQuote": true,
55
"trailingComma": "es5",
6-
"semi": true
6+
"semi": false
77
}

templates/koa-ts/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
# Introduction
22

3-
This template includes a minimal setup for writing a backend in [Koa](https://koajs.com/).
3+
Template for a backend in [Koa](https://koajs.com/).
44

5-
`src/example-api` includes a few routed endpoints with various usages of standard HTTP input and output.
5+
`src/api` includes a few routed endpoints with various usages of standard HTTP input and output.
6+
7+
`src/services/search-service` is a self-contained service with its own route and adapter, prepared to be
8+
extracted into a separate micro service if/when appropriate.
69

710
## Installation
811

9-
`npm run install`
12+
1. Install nvm
13+
2. `nvm install`
14+
3. `nvm use`
15+
4. `npm run install`
1016

1117
## Development
1218

0 commit comments

Comments
 (0)