typescript-express-starter 6.0.0 โ 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.kr.md +133 -52
- package/README.md +134 -54
- package/bin/cli.js +4 -3
- package/lib/default/.swcrc +41 -0
- package/lib/default/Dockerfile +1 -1
- package/lib/default/ecosystem.config.js +40 -24
- package/lib/default/nodemon.json +2 -2
- package/lib/default/package.json +15 -8
- package/lib/default/src/app.ts +1 -2
- package/lib/default/src/http/auth.http +12 -15
- package/lib/default/src/http/users.http +12 -16
- package/lib/default/src/index.ts +1 -0
- package/lib/default/src/middlewares/auth.middleware.ts +3 -3
- package/lib/default/src/models/users.model.ts +5 -5
- package/lib/default/src/server.ts +1 -2
- package/lib/default/src/services/auth.service.ts +5 -5
- package/lib/default/src/services/users.service.ts +3 -3
- package/lib/default/src/tests/auth.test.ts +4 -4
- package/lib/default/src/tests/users.test.ts +4 -4
- package/lib/default/src/utils/logger.ts +5 -5
- package/lib/default/src/utils/util.ts +1 -1
- package/lib/default/tsconfig.json +2 -2
- package/lib/knex/.swcrc +39 -0
- package/lib/knex/Dockerfile +1 -1
- package/lib/knex/ecosystem.config.js +57 -43
- package/lib/knex/knexfile.ts +6 -6
- package/lib/knex/nodemon.json +2 -2
- package/lib/knex/package.json +14 -8
- package/lib/knex/src/app.ts +2 -3
- package/lib/knex/src/databases/index.ts +6 -6
- package/lib/knex/src/http/auth.http +12 -15
- package/lib/knex/src/http/users.http +12 -16
- package/lib/knex/src/index.ts +1 -0
- package/lib/knex/src/middlewares/auth.middleware.ts +4 -4
- package/lib/knex/src/server.ts +1 -2
- package/lib/knex/src/services/auth.service.ts +5 -5
- package/lib/knex/src/services/users.service.ts +3 -3
- package/lib/knex/src/tests/auth.test.ts +2 -2
- package/lib/knex/src/tests/index.test.ts +1 -1
- package/lib/knex/src/tests/users.test.ts +2 -2
- package/lib/knex/src/utils/logger.ts +5 -5
- package/lib/knex/src/utils/util.ts +1 -1
- package/lib/knex/tsconfig.json +2 -2
- package/lib/mongoose/.swcrc +39 -0
- package/lib/mongoose/Dockerfile +1 -1
- package/lib/mongoose/docker-compose.yml +0 -4
- package/lib/mongoose/ecosystem.config.js +42 -27
- package/lib/mongoose/nodemon.json +2 -2
- package/lib/mongoose/package.json +15 -8
- package/lib/mongoose/src/app.ts +2 -3
- package/lib/mongoose/src/configs/development.json +1 -1
- package/lib/mongoose/src/configs/production.json +1 -1
- package/lib/mongoose/src/configs/test.json +1 -1
- package/lib/mongoose/src/http/auth.http +32 -0
- package/lib/mongoose/src/http/users.http +34 -0
- package/lib/mongoose/src/index.ts +1 -0
- package/lib/mongoose/src/middlewares/auth.middleware.ts +3 -3
- package/lib/mongoose/src/server.ts +1 -2
- package/lib/mongoose/src/services/auth.service.ts +5 -5
- package/lib/mongoose/src/services/users.service.ts +3 -3
- package/lib/mongoose/src/utils/logger.ts +5 -5
- package/lib/mongoose/src/utils/util.ts +1 -1
- package/lib/mongoose/tsconfig.json +2 -2
- package/lib/prisma/.env +1 -1
- package/lib/prisma/.swcrc +37 -0
- package/lib/prisma/Dockerfile +1 -1
- package/lib/prisma/docker-compose.yml +1 -6
- package/lib/prisma/ecosystem.config.js +40 -24
- package/lib/prisma/nodemon.json +2 -2
- package/lib/prisma/package.json +17 -10
- package/lib/prisma/src/app.ts +2 -3
- package/lib/prisma/src/http/auth.http +12 -15
- package/lib/prisma/src/http/users.http +12 -16
- package/lib/prisma/src/index.ts +1 -0
- package/lib/prisma/src/middlewares/auth.middleware.ts +4 -4
- package/lib/prisma/src/server.ts +1 -2
- package/lib/prisma/src/services/auth.service.ts +5 -5
- package/lib/prisma/src/services/users.service.ts +3 -3
- package/lib/prisma/src/utils/logger.ts +5 -5
- package/lib/prisma/src/utils/util.ts +1 -1
- package/lib/prisma/tsconfig.json +2 -2
- package/lib/routing-controllers/.swcrc +37 -0
- package/lib/routing-controllers/Dockerfile +1 -1
- package/lib/routing-controllers/ecosystem.config.js +40 -24
- package/lib/routing-controllers/nodemon.json +2 -2
- package/lib/routing-controllers/package.json +18 -11
- package/lib/routing-controllers/src/app.ts +33 -6
- package/lib/routing-controllers/src/http/auth.http +12 -15
- package/lib/routing-controllers/src/http/users.http +12 -16
- package/lib/routing-controllers/src/index.ts +1 -0
- package/lib/routing-controllers/src/middlewares/auth.middleware.ts +3 -3
- package/lib/routing-controllers/src/middlewares/validation.middleware.ts +10 -2
- package/lib/routing-controllers/src/models/users.model.ts +5 -5
- package/lib/routing-controllers/src/server.ts +1 -3
- package/lib/routing-controllers/src/services/auth.service.ts +5 -5
- package/lib/routing-controllers/src/services/users.service.ts +3 -3
- package/lib/routing-controllers/src/utils/logger.ts +5 -5
- package/lib/routing-controllers/src/utils/util.ts +1 -1
- package/lib/routing-controllers/tsconfig.json +2 -2
- package/lib/sequelize/.swcrc +39 -0
- package/lib/sequelize/Dockerfile +1 -1
- package/lib/sequelize/docker-compose.yml +1 -6
- package/lib/sequelize/ecosystem.config.js +42 -27
- package/lib/sequelize/nodemon.json +2 -2
- package/lib/sequelize/package.json +15 -8
- package/lib/sequelize/src/app.ts +1 -2
- package/lib/sequelize/src/configs/development.json +2 -2
- package/lib/sequelize/src/configs/production.json +1 -1
- package/lib/sequelize/src/configs/test.json +1 -1
- package/lib/sequelize/src/http/auth.http +32 -0
- package/lib/sequelize/src/http/users.http +34 -0
- package/lib/sequelize/src/index.ts +1 -0
- package/lib/sequelize/src/middlewares/auth.middleware.ts +4 -4
- package/lib/sequelize/src/server.ts +1 -2
- package/lib/sequelize/src/services/auth.service.ts +5 -5
- package/lib/sequelize/src/services/users.service.ts +3 -3
- package/lib/sequelize/src/utils/logger.ts +5 -5
- package/lib/sequelize/src/utils/util.ts +1 -1
- package/lib/sequelize/tsconfig.json +2 -2
- package/lib/starter.js +8 -12
- package/lib/typeorm/.swcrc +39 -0
- package/lib/typeorm/Dockerfile +1 -1
- package/lib/typeorm/docker-compose.yml +1 -1
- package/lib/typeorm/ecosystem.config.js +42 -27
- package/lib/typeorm/nodemon.json +2 -2
- package/lib/typeorm/package.json +15 -8
- package/lib/typeorm/src/app.ts +1 -2
- package/lib/typeorm/src/configs/development.json +1 -1
- package/lib/typeorm/src/configs/production.json +1 -1
- package/lib/typeorm/src/configs/test.json +1 -1
- package/lib/typeorm/src/databases/index.ts +5 -5
- package/lib/typeorm/src/{entity โ entities}/users.entity.ts +3 -3
- package/lib/typeorm/src/http/auth.http +12 -15
- package/lib/typeorm/src/http/users.http +12 -16
- package/lib/typeorm/src/index.ts +1 -0
- package/lib/typeorm/src/middlewares/auth.middleware.ts +5 -9
- package/lib/typeorm/src/server.ts +1 -2
- package/lib/typeorm/src/services/auth.service.ts +13 -17
- package/lib/typeorm/src/services/users.service.ts +16 -22
- package/lib/typeorm/src/utils/logger.ts +5 -5
- package/lib/typeorm/src/utils/util.ts +1 -1
- package/lib/typeorm/tsconfig.json +3 -3
- package/package.json +12 -4
package/README.kr.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<h1 align="center">
|
|
2
2
|
<br>
|
|
3
|
-
<img src=
|
|
3
|
+
<img src="https://github.com/ljlm0402/typescript-express-starter/raw/images/logo.jpg" alt="ํ๋ก์ ํธ ๋ก๊ณ " />
|
|
4
4
|
<br>
|
|
5
5
|
<br>
|
|
6
6
|
ํ์
์คํฌ๋ฆฝํธ ์ต์คํ๋ ์ค ์คํํฐ
|
|
@@ -10,26 +10,55 @@
|
|
|
10
10
|
<h4 align="center">๐ ํ์
์คํฌ๋ฆฝํธ ๊ธฐ๋ฐ์ ์ต์คํ๋ ์ค ๋ณด์ผ๋ฌ ํ๋ ์ดํธ ์คํํฐ ํจํค์ง</h4>
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
13
|
-
<a href="http://npm.im/typescript-express-starter" target="_blank"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<a href="http://npm.im/typescript-express-starter" target="_blank"
|
|
13
|
+
<a href="http://npm.im/typescript-express-starter" target="_blank">
|
|
14
|
+
<img src="https://img.shields.io/npm/v/typescript-express-starter.svg" alt="npm ๋ฒ์ " />
|
|
15
|
+
</a>
|
|
16
|
+
<a href="http://npm.im/typescript-express-starter" target="_blank">
|
|
17
|
+
<img src="https://img.shields.io/github/v/release/ljlm0402/typescript-express-starter" alt="npm ๋ฆด๋ฆฌ์ฆ ๋ฒ์ " />
|
|
18
|
+
</a>
|
|
19
|
+
<a href="http://npm.im/typescript-express-starter" target="_blank">
|
|
20
|
+
<img src="https://img.shields.io/npm/l/typescript-express-starter.svg" alt="npm ํจํค์ง ๋ผ์ด์ ์ค" />
|
|
21
|
+
</a>
|
|
22
|
+
<a href="http://npm.im/typescript-express-starter" target="_blank">
|
|
23
|
+
<img src="https://img.shields.io/npm/dm/typescript-express-starter.svg" alt="npm ๋ค์ด๋ก๋ ์" />
|
|
24
|
+
</a>
|
|
17
25
|
</p>
|
|
18
26
|
|
|
19
|
-
<br />
|
|
20
|
-
|
|
21
27
|
<p align="center">
|
|
22
|
-
<a href="https://github.com/ljlm0402/typescript-express-starter/
|
|
23
|
-
|
|
28
|
+
<a href="https://github.com/ljlm0402/typescript-express-starter/stargazers" target="_blank">
|
|
29
|
+
<img src="https://img.shields.io/github/stars/ljlm0402/typescript-express-starter" alt="github ์คํ"/>
|
|
30
|
+
</a>
|
|
31
|
+
<a href="https://github.com/ljlm0402/typescript-express-starter/network/members" target="_blank">
|
|
32
|
+
<img src="https://img.shields.io/github/forks/ljlm0402/typescript-express-starter" alt="github ํฌํฌ" />
|
|
33
|
+
</a>
|
|
34
|
+
<a href="https://github.com/ljlm0402/typescript-express-starter/stargazers" target="_blank">
|
|
35
|
+
<img src="https://img.shields.io/github/contributors/ljlm0402/typescript-express-starter" alt="github ์ปจํธ๋ฆฌ๋ทฐํฐ" />
|
|
36
|
+
</a>
|
|
37
|
+
<a href="https://github.com/ljlm0402/typescript-express-starter/issues" target="_blank">
|
|
38
|
+
<img src="https://img.shields.io/github/issues/ljlm0402/typescript-express-starter" alt="github ์ด์" />
|
|
39
|
+
</a>
|
|
24
40
|
</p>
|
|
25
41
|
|
|
26
42
|
<br />
|
|
27
43
|
|
|
28
|
-
##
|
|
44
|
+
## ๋ฒ์ญ๋ณธ - ์์ ์ด ์ํ๋ ์ธ์ด๋ก ์ฝ์ผ์ธ์
|
|
29
45
|
|
|
30
|
-
|
|
46
|
+
- [๐บ๐ธ ์์ด](https://github.com/ljlm0402/typescript-express-starter/blob/master/README.md)
|
|
47
|
+
- [๐ฐ๐ท ํ๊ตญ์ด](https://github.com/ljlm0402/typescript-express-starter/blob/master/README.kr.md)
|
|
48
|
+
|
|
49
|
+
> ๋ฒ์ญ์ ๋์์ฃผ์ค ๋ถ์ ์ด์ ๋จ๊ฒจ์ฃผ์๊ธฐ ๋ฐ๋๋๋ค. ๐
|
|
50
|
+
|
|
51
|
+
<br />
|
|
52
|
+
|
|
53
|
+
## ์น ์ฌ์ดํธ - ํ๋ก์ ํธ ์๊ฐ ๋ฐ ํ๋ณด
|
|
54
|
+
|
|
55
|
+
- [๐๐ปโโ๏ธ Dylan Iqbal :: A TypeScript Express Starter App](https://bit.ly/3rrZFZ9)
|
|
31
56
|
|
|
32
|
-
|
|
57
|
+
> ์น ์ฌ์ดํธ ๋ฐ ๋ธ๋ก๊ทธ์ ์๊ฐ๋ฅผ ์ํ์๋ ๋ถ์ ์ด์ ๋จ๊ฒจ์ฃผ์๊ธฐ ๋ฐ๋๋๋ค. ๐
|
|
58
|
+
|
|
59
|
+
<br />
|
|
60
|
+
|
|
61
|
+
## ๐ ํ๋ก์ ํธ๋ฅผ ์๊ฐํฉ๋๋ค.
|
|
33
62
|
|
|
34
63
|
Express๋ ์ ํ ์ ์์ ์ทจ์ฝํ JavaScript๋ก ๊ตฌ์ฑ ๋์ด์์ต๋๋ค.
|
|
35
64
|
|
|
@@ -39,6 +68,10 @@ Express๋ ์ ํ ์ ์์ ์ทจ์ฝํ JavaScript๋ก ๊ตฌ์ฑ ๋์ด์์ต๋๋ค.
|
|
|
39
68
|
|
|
40
69
|
> ์ฐธ๊ณ : [express-generator-typescript](https://github.com/seanpmaxwell/express-generator-typescript)
|
|
41
70
|
|
|
71
|
+
### ๐ค Express๋ ๋ฌด์์ธ๊ฐ์ ?
|
|
72
|
+
|
|
73
|
+
Node.js๋ฅผ ์ํ ๋น ๋ฅด๊ณ ๊ฐ๋ฐฉ์ ์ธ ๊ฐ๊ฒฐํ ์น ํ๋ ์์ํฌ์
๋๋ค.
|
|
74
|
+
|
|
42
75
|
## ๐ ์์ํ๊ธฐ
|
|
43
76
|
|
|
44
77
|
### npm ์ ์ญ ์ค์น
|
|
@@ -57,7 +90,7 @@ $ npx typescript-express-starter "project name"
|
|
|
57
90
|
|
|
58
91
|
### ์ํ์๋ ํ
ํ๋ฆฟ์ ์ ํ
|
|
59
92
|
|
|
60
|
-
<img src=
|
|
93
|
+
<img src="https://github.com/ljlm0402/typescript-express-starter/raw/images/cli.gif" alt="์์" />
|
|
61
94
|
|
|
62
95
|
์ค์น๊ฐ ์๋ฃ๋๋ฉด Script ๋ช
๋ น์ด๋ฅผ ํตํด ํ๋ก์ ํธ๋ฅผ ์คํํฉ๋๋ค.
|
|
63
96
|
|
|
@@ -84,25 +117,35 @@ $ npx typescript-express-starter "project name"
|
|
|
84
117
|
|
|
85
118
|
## ๐ ํ๋ก์ ํธ ๊ธฐ๋ฅ
|
|
86
119
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-

|
|
90
|
-

|
|
97
|
-

|
|
123
|
+

|
|
124
|
+

|
|
125
|
+

|
|
126
|
+
|
|
127
|
+
- DevOps
|
|
128
|
+
|
|
129
|
+
- 
|
|
130
|
+

|
|
131
|
+

|
|
132
|
+

|
|
133
|
+

|
|
134
|
+

|
|
135
|
+
|
|
136
|
+
- Utilities
|
|
137
|
+
|
|
138
|
+
- 
|
|
139
|
+
|
|
140
|
+
- Database
|
|
141
|
+
- 
|
|
142
|
+

|
|
143
|
+

|
|
144
|
+

|
|
102
145
|
|
|
103
146
|
> [Simple Icons](https://simpleicons.org/)
|
|
104
147
|
|
|
105
|
-
### ๐ณ ๋์ปค
|
|
148
|
+
### ๐ณ ๋์ปค :: ์ปจํ
์ด๋ ํ๋ซํผ
|
|
106
149
|
|
|
107
150
|
[๋์ปค](https://docs.docker.com/)๋, ์ปจํ
์ด๋ ๊ธฐ๋ฐ์ ์คํ์์ค ๊ฐ์ํ ํ๋ซํผ์ด๋ค.
|
|
108
151
|
|
|
@@ -113,7 +156,7 @@ $ npx typescript-express-starter "project name"
|
|
|
113
156
|
|
|
114
157
|
์์ ์ ์ํ์๋ฉด `docker-compose.yml`๊ณผ `Dockerfile`๋ฅผ ์์ ํด์ฃผ์๋ฉด ๋ฉ๋๋ค.
|
|
115
158
|
|
|
116
|
-
### โป๏ธ ์์ง์์ค
|
|
159
|
+
### โป๏ธ ์์ง์์ค :: ์น ์๋ฒ
|
|
117
160
|
|
|
118
161
|
[์์ง์์ค](https://www.nginx.com/) ์ญ๋ฐฉํฅ ํ๋ก์,๋ก๋ ๋ฐธ๋ฐ์, ๋ฉ์ผ ํ๋ก์ ๋ฐ HTTP ์บ์๋ก๋ ์ฌ์ฉํ ์์๋ ์น ์๋ฒ์
๋๋ค.
|
|
119
162
|
|
|
@@ -123,9 +166,7 @@ $ npx typescript-express-starter "project name"
|
|
|
123
166
|
|
|
124
167
|
์์ ์ ์ํ์๋ฉด `nginx.conf` ํ์ผ์ ์์ ํด์ฃผ์๋ฉด ๋ฉ๋๋ค.
|
|
125
168
|
|
|
126
|
-
### โจ ESLint, Prettier
|
|
127
|
-
|
|
128
|
-
2019๋
, TSLint ์ง์์ด ์ข
๋ฃ ๋์ด ESLint๋ฅผ ์ ์ฉํ์์ต๋๋ค.
|
|
169
|
+
### โจ ESLint, Prettier :: ์ ์ ์ฝ๋ ๋ถ์ ๋ฐ ์ฝ๋ ์คํ์ผ ๋ณํ
|
|
129
170
|
|
|
130
171
|
[ESLint](https://eslint.org/)๋ JavaScript ์ฝ๋์์ ๋ฐ๊ฒฌ ๋ ๋ฌธ์ ํจํด์ ์๋ณํ๊ธฐ์ํ ์ ์ ์ฝ๋ ๋ถ์ ๋๊ตฌ์
๋๋ค.
|
|
131
172
|
|
|
@@ -143,11 +184,13 @@ $ npx typescript-express-starter "project name"
|
|
|
143
184
|
|
|
144
185
|
5. Prettier - Code formatter ์ ์ฉํฉ๋๋ค.
|
|
145
186
|
|
|
146
|
-
<img src=
|
|
187
|
+
<img src="https://user-images.githubusercontent.com/42952358/126604937-4ef50b61-b7e4-4635-b3c9-3c94dd6b06fa.png" alt="Formatter ์ค์ " />
|
|
188
|
+
|
|
189
|
+
> 2019๋
, TSLint ์ง์์ด ์ข
๋ฃ ๋์ด ESLint๋ฅผ ์ ์ฉํ์์ต๋๋ค.
|
|
147
190
|
|
|
148
|
-
### ๐
|
|
191
|
+
### ๐ ์ค์จ๊ฑฐ :: API ๋ฌธ์ํ
|
|
149
192
|
|
|
150
|
-
[์ค์จ๊ฑฐ](https://swagger.io/) ๊ฐ๋ฐ์๊ฐ REST ์น ์๋น์ค๋ฅผ ์ค๊ณ, ๋น๋, ๋ฌธ์ํ, ์๋นํ๋ ์ผ์ ๋์์ฃผ๋ ๋ํ ๋๊ตฌ ์ํ๊ณ์ ์ง์์ ๋ฐ๋ ์คํ ์์ค ์ํํธ์จ์ด ํ๋ ์์ํฌ์ด๋ค.
|
|
193
|
+
[์ค์จ๊ฑฐ](https://swagger.io/)๋ ๊ฐ๋ฐ์๊ฐ REST ์น ์๋น์ค๋ฅผ ์ค๊ณ, ๋น๋, ๋ฌธ์ํ, ์๋นํ๋ ์ผ์ ๋์์ฃผ๋ ๋ํ ๋๊ตฌ ์ํ๊ณ์ ์ง์์ ๋ฐ๋ ์คํ ์์ค ์ํํธ์จ์ด ํ๋ ์์ํฌ์ด๋ค.
|
|
151
194
|
|
|
152
195
|
API๋ฅผ ๋๊ท๋ชจ๋ก ์ค๊ณํ๊ณ ๋ฌธ์ํํ๋ ๋ฐ ์ฉ์ดํ๊ฒ ์ฌ์ฉํฉ๋๋ค.
|
|
153
196
|
|
|
@@ -155,13 +198,33 @@ API๋ฅผ ๋๊ท๋ชจ๋ก ์ค๊ณํ๊ณ ๋ฌธ์ํํ๋ ๋ฐ ์ฉ์ดํ๊ฒ ์ฌ์ฉํฉ๋
|
|
|
155
198
|
|
|
156
199
|
์์ ์ ์ํ์๋ฉด `swagger.yaml` ํ์ผ์ ์์ ํด์ฃผ์๋ฉด ๋ฉ๋๋ค.
|
|
157
200
|
|
|
158
|
-
### ๐ REST Client
|
|
201
|
+
### ๐ REST Client :: HTTP Client ๋๊ตฌ
|
|
159
202
|
|
|
160
203
|
REST ํด๋ผ์ด์ธํธ๋ฅผ ์ฌ์ฉํ๋ฉด HTTP ์์ฒญ์ ๋ณด๋ด๊ณ Visual Studio Code์์ ์ง์ ์๋ต์ ๋ณผ ์ ์์ต๋๋ค.
|
|
161
204
|
|
|
162
205
|
VSCode Extension์์ [REST Client](https://marketplace.visualstudio.com/items?itemName=humao.rest-client) ์ค์นํฉ๋๋ค.
|
|
163
206
|
|
|
164
|
-
์์ ์ ์ํ์๋ฉด http ํด๋ ์์ `*.http` ํ์ผ์ ์์ ํด์ฃผ์๋ฉด ๋ฉ๋๋ค.
|
|
207
|
+
์์ ์ ์ํ์๋ฉด src/http ํด๋ ์์ `*.http` ํ์ผ์ ์์ ํด์ฃผ์๋ฉด ๋ฉ๋๋ค.
|
|
208
|
+
|
|
209
|
+
### ๐ฎ PM2 :: ์น ์ ํ๋ฆฌ์ผ์ด์
์ ์ด์ ๋ฐ ํ๋ก์ธ์ค ๊ด๋ฆฌ์
|
|
210
|
+
|
|
211
|
+
[PM2](https://pm2.keymetrics.io/)๋, ์๋ฒ์์ ์น ์ ํ๋ฆฌ์ผ์ด์
์ ์ด์ํ ๋ ๋ณดํต ๋ฐ๋ชฌ์ผ๋ก ์๋ฒ๋ฅผ ๋์์ผ ํ๊ณ Node.js์ ๊ฒฝ์ฐ ์๋ฒ๊ฐ ํฌ๋์๋๋ฉด ์ฌ์์์ ํ๊ธฐ ์ํด์ ์์น๋
(watchdog) ๋ฅ์ ํ๋ก์ธ์ค ๊ด๋ฆฌ์์ด๋ค.
|
|
212
|
+
|
|
213
|
+
- ํ๋ก๋์
๋ชจ๋ :: `npm run deploy:prod` ๋๋ `pm2 start ecosystem.config.js --only prod`
|
|
214
|
+
- ๊ฐ๋ฐ ๋ชจ๋ :: `npm run deploy:dev` ๋๋ `pm2 start ecosystem.config.js --only dev`
|
|
215
|
+
|
|
216
|
+
์์ ์ ์ํ์๋ฉด `ecosystem.config.js` ํ์ผ์ ์์ ํด์ฃผ์๋ฉด ๋ฉ๋๋ค.
|
|
217
|
+
|
|
218
|
+
### ๐ SWC :: ๊ฐํ๊ณ ๋น ๋ฅธ ์๋ฐ์คํฌ๋ฆฝํธ / ํ์
์คํฌ๋ฆฝํธ ์ปดํ์ผ๋ฌ
|
|
219
|
+
|
|
220
|
+
[SWC](https://swc.rs/)๋ ์ฐจ์ธ๋ ๊ณ ์ ๊ฐ๋ฐ์ ๋๊ตฌ๋ฅผ ์ํ ํ์ฅ ๊ฐ๋ฅํ Rust ๊ธฐ๋ฐ ํ๋ซํผ์
๋๋ค.
|
|
221
|
+
|
|
222
|
+
`SWC๋ ๋จ์ผ ์ค๋ ๋์์ Babel๋ณด๋ค 20๋ฐฐ, 4๊ฐ ์ฝ์ด์์ 70๋ฐฐ ๋น ๋ฆ
๋๋ค.`
|
|
223
|
+
|
|
224
|
+
- swc ๋น๋ :: `npm run build`
|
|
225
|
+
- tsc ๋น๋ :: `npm run build:tsc`
|
|
226
|
+
|
|
227
|
+
์์ ์ ์ํ์๋ฉด `.swcrc` ํ์ผ์ ์์ ํด์ฃผ์๋ฉด ๋ฉ๋๋ค.
|
|
165
228
|
|
|
166
229
|
## ๐ ์ฝ๋ ๊ตฌ์กฐ (default)
|
|
167
230
|
|
|
@@ -225,6 +288,7 @@ VSCode Extension์์ [REST Client](https://marketplace.visualstudio.com/items?
|
|
|
225
288
|
โ โ โโโ vaildateEnv.ts
|
|
226
289
|
โ โ
|
|
227
290
|
โ โโโ app.ts
|
|
291
|
+
โ โโโ index.ts
|
|
228
292
|
โ โโโ server.ts
|
|
229
293
|
โ
|
|
230
294
|
โโโ .dockerignore
|
|
@@ -236,6 +300,7 @@ VSCode Extension์์ [REST Client](https://marketplace.visualstudio.com/items?
|
|
|
236
300
|
โโโ .huskyrc
|
|
237
301
|
โโโ .lintstagedrc.json
|
|
238
302
|
โโโ .prettierrc
|
|
303
|
+
โโโ .swcrc
|
|
239
304
|
โโโ docker-compose.yml
|
|
240
305
|
โโโ Dockerfile
|
|
241
306
|
โโโ ecosystem.config.js
|
|
@@ -249,25 +314,17 @@ VSCode Extension์์ [REST Client](https://marketplace.visualstudio.com/items?
|
|
|
249
314
|
โโโ tsconfig.json
|
|
250
315
|
```
|
|
251
316
|
|
|
252
|
-
##
|
|
317
|
+
## โญ๏ธ ์ฃผ์ ๋ถ๋ค
|
|
253
318
|
|
|
254
|
-
|
|
255
|
-
| :----------------- | :-------------------- |
|
|
256
|
-
| ๊ธฐ๋ฅ ์ถ๊ฐ | โจ ๊ธฐ๋ฅ ์ถ๊ฐ |
|
|
257
|
-
| ๋ฒ๊ทธ ์์ | ๐ ๋ฒ๊ทธ ์์ |
|
|
258
|
-
| ์ฝ๋ ๊ฐ์ | ๐ ์ฝ๋ ๊ฐ์ |
|
|
259
|
-
| ํจํค์ง ์ค์น | ๐ฆ ํจํค์ง ์ค์น |
|
|
260
|
-
| ๋ฌธ์ ์์ | ๐ ๋ฌธ์ ์์ |
|
|
261
|
-
| ๋ฒ์ ์
๋ฐ์ดํธ | ๐ผ ๋ฒ์ ์
๋ฐ์ดํธ |
|
|
262
|
-
| ์๋ก์ด ํ
ํ๋ฆฟ ์ถ๊ฐ | ๐ ์๋ก์ด ํ
ํ๋ฆฟ ์ถ๊ฐ |
|
|
319
|
+
[](https://github.com/ljlm0402/typescript-express-starter/stargazers)
|
|
263
320
|
|
|
264
|
-
##
|
|
321
|
+
## ๐ด ํด์ฃผ์ ๋ถ๋ค
|
|
265
322
|
|
|
266
|
-
[
|
|
323
|
+
[](https://github.com/ljlm0402/typescript-express-starter/network/members)
|
|
267
324
|
|
|
268
325
|
## ๐ค ๋์์ ์ฃผ์ ๋ถ๋ค
|
|
269
326
|
|
|
270
|
-
<img src="https://contributors-img.web.app/image?repo=ljlm0402/typescript-express-starter" alt="
|
|
327
|
+
<img src="https://contributors-img.web.app/image?repo=ljlm0402/typescript-express-starter" alt="๊ธฐ์ฌ์">
|
|
271
328
|
|
|
272
329
|
- Jeongwon Kim [https://github.com/swtpumpkin](https://github.com/swtpumpkin)
|
|
273
330
|
|
|
@@ -301,8 +358,32 @@ VSCode Extension์์ [REST Client](https://marketplace.visualstudio.com/items?
|
|
|
301
358
|
|
|
302
359
|
- michael r [https://github.com/alanmynah](https://github.com/alanmynah)
|
|
303
360
|
|
|
361
|
+
- Benjamin [https://github.com/benjaminudoh10](https://github.com/benjaminudoh10)
|
|
362
|
+
|
|
363
|
+
- Amrik Singh [https://github.com/AmrikSD](https://github.com/AmrikSD)
|
|
364
|
+
|
|
365
|
+
- oricc [https://github.com/oricc](https://github.com/oricc)
|
|
366
|
+
|
|
367
|
+
## ๐ณ ๋ผ์ด์ผ์ค
|
|
368
|
+
|
|
369
|
+
[MIT](LICENSE)
|
|
370
|
+
|
|
371
|
+
## ๐ฌ ์ปค๋ฐ ๋ฉ์์ง ์ ์
|
|
372
|
+
|
|
373
|
+
| ์ธ์ | ๋ฉ์์ง |
|
|
374
|
+
| :----------------- | :-------------------- |
|
|
375
|
+
| ๊ธฐ๋ฅ ์ถ๊ฐ | โจ ๊ธฐ๋ฅ ์ถ๊ฐ |
|
|
376
|
+
| ๋ฒ๊ทธ ์์ | ๐ ๋ฒ๊ทธ ์์ |
|
|
377
|
+
| ์ฝ๋ ๊ฐ์ | ๐ ์ฝ๋ ๊ฐ์ |
|
|
378
|
+
| ํจํค์ง ์ค์น | ๐ฆ ํจํค์ง ์ค์น |
|
|
379
|
+
| ๋ฌธ์ ์์ | ๐ ๋ฌธ์ ์์ |
|
|
380
|
+
| ๋ฒ์ ์
๋ฐ์ดํธ | ๐ผ ๋ฒ์ ์
๋ฐ์ดํธ |
|
|
381
|
+
| ์๋ก์ด ํ
ํ๋ฆฟ ์ถ๊ฐ | ๐ ์๋ก์ด ํ
ํ๋ฆฟ ์ถ๊ฐ |
|
|
382
|
+
|
|
304
383
|
## ๐ฌ ์ด์๋ฅผ ๋จ๊ฒจ์ฃผ์ธ์
|
|
305
384
|
|
|
306
385
|
์ถํ ์ถ๊ฐํ๊ณ ์ํ๋ ํ
ํ๋ฆฟ, ์ง๋ฌธ, ๊ธฐ๋ฅ์ ์ ์ด ์ฃผ์๋ฉด ์ต์ ์ ๋คํด ๋ต๋ณํ๊ณ ๋ฐ์ํ๊ฒ ์ต๋๋ค.
|
|
307
386
|
|
|
308
|
-
์ ์ ์คํ์์ค์ ๋ํด ๊ด์ฌ์ ๊ฐ์ ธ์ฃผ์
์ ๊ฐ์ฌํฉ๋๋ค.
|
|
387
|
+
์ ์ ์คํ์์ค์ ๋ํด ๊ด์ฌ์ ๊ฐ์ ธ์ฃผ์
์ ๊ฐ์ฌํฉ๋๋ค.
|
|
388
|
+
|
|
389
|
+
# (เนหฬตแดหฬต)ู
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<h1 align="center">
|
|
2
2
|
<br>
|
|
3
|
-
<img src=
|
|
3
|
+
<img src="https://github.com/ljlm0402/typescript-express-starter/raw/images/logo.jpg" alt="Project Logo" />
|
|
4
4
|
<br>
|
|
5
5
|
<br>
|
|
6
6
|
TypeScript Express Starter
|
|
@@ -10,24 +10,53 @@
|
|
|
10
10
|
<h4 align="center">๐ Express RESTful API Boilerplate Using TypeScript</h4>
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
13
|
-
<a href="http://npm.im/typescript-express-starter" target="_blank"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<a href="http://npm.im/typescript-express-starter" target="_blank"
|
|
13
|
+
<a href="http://npm.im/typescript-express-starter" target="_blank">
|
|
14
|
+
<img src="https://img.shields.io/npm/v/typescript-express-starter.svg" alt="npm Version" />
|
|
15
|
+
</a>
|
|
16
|
+
<a href="http://npm.im/typescript-express-starter" target="_blank">
|
|
17
|
+
<img src="https://img.shields.io/github/v/release/ljlm0402/typescript-express-starter" alt="npm Release Version" />
|
|
18
|
+
</a>
|
|
19
|
+
<a href="http://npm.im/typescript-express-starter" target="_blank">
|
|
20
|
+
<img src="https://img.shields.io/npm/l/typescript-express-starter.svg" alt="npm Package License" />
|
|
21
|
+
</a>
|
|
22
|
+
<a href="http://npm.im/typescript-express-starter" target="_blank">
|
|
23
|
+
<img src="https://img.shields.io/npm/dm/typescript-express-starter.svg" alt="npm Downloads" />
|
|
24
|
+
</a>
|
|
17
25
|
</p>
|
|
18
26
|
|
|
19
|
-
<br />
|
|
20
|
-
|
|
21
27
|
<p align="center">
|
|
22
|
-
<a href="https://github.com/ljlm0402/typescript-express-starter/
|
|
23
|
-
|
|
28
|
+
<a href="https://github.com/ljlm0402/typescript-express-starter/stargazers" target="_blank">
|
|
29
|
+
<img src="https://img.shields.io/github/stars/ljlm0402/typescript-express-starter" alt="github Stars" />
|
|
30
|
+
</a>
|
|
31
|
+
<a href="https://github.com/ljlm0402/typescript-express-starter/network/members" target="_blank">
|
|
32
|
+
<img src="https://img.shields.io/github/forks/ljlm0402/typescript-express-starter" alt="github Forks" />
|
|
33
|
+
</a>
|
|
34
|
+
<a href="https://github.com/ljlm0402/typescript-express-starter/stargazers" target="_blank">
|
|
35
|
+
<img src="https://img.shields.io/github/contributors/ljlm0402/typescript-express-starter" alt="github Contributors" />
|
|
36
|
+
</a>
|
|
37
|
+
<a href="https://github.com/ljlm0402/typescript-express-starter/issues" target="_blank">
|
|
38
|
+
<img src="https://img.shields.io/github/issues/ljlm0402/typescript-express-starter" alt="github Issues" />
|
|
39
|
+
</a>
|
|
24
40
|
</p>
|
|
25
41
|
|
|
26
42
|
<br />
|
|
27
43
|
|
|
28
|
-
##
|
|
44
|
+
## Translations - read in your own language
|
|
29
45
|
|
|
30
|
-
|
|
46
|
+
- [๐บ๐ธ English](https://github.com/ljlm0402/typescript-express-starter/blob/master/README.md)
|
|
47
|
+
- [๐ฐ๐ท Korean](https://github.com/ljlm0402/typescript-express-starter/blob/master/README.kr.md)
|
|
48
|
+
|
|
49
|
+
> Want to translate to your own language? please open an issue ๐
|
|
50
|
+
|
|
51
|
+
<br />
|
|
52
|
+
|
|
53
|
+
## Web Site - Project Introduction
|
|
54
|
+
|
|
55
|
+
- [๐๐ปโโ๏ธ Dylan Iqbal :: A TypeScript Express Starter App](https://bit.ly/3rrZFZ9)
|
|
56
|
+
|
|
57
|
+
> Want to be featured on your blog or site? please open an issue ๐
|
|
58
|
+
|
|
59
|
+
<br />
|
|
31
60
|
|
|
32
61
|
## ๐ Introducing The Project
|
|
33
62
|
|
|
@@ -37,7 +66,11 @@ That's why we avoid supersets with starter packages that introduce TypeScript.
|
|
|
37
66
|
|
|
38
67
|
The package is configured to use TypeScript instead of JavaScript.
|
|
39
68
|
|
|
40
|
-
> The project referred to [express-generator-typescript](https://github.com/seanpmaxwell/express-generator-typescript)
|
|
69
|
+
> The project referred to [express-generator-typescript](https://github.com/seanpmaxwell/express-generator-typescript)
|
|
70
|
+
|
|
71
|
+
### ๐ค What is Express ?
|
|
72
|
+
|
|
73
|
+
Express is a fast, open and concise web framework and is a Node.js based project.
|
|
41
74
|
|
|
42
75
|
## ๐ Quick Start
|
|
43
76
|
|
|
@@ -61,7 +94,7 @@ $ npx typescript-express-starter "project name"
|
|
|
61
94
|
|
|
62
95
|
### Select a Templates
|
|
63
96
|
|
|
64
|
-
<img src=
|
|
97
|
+
<img src="https://github.com/ljlm0402/typescript-express-starter/raw/images/cli.gif" alt="Example Cli" />
|
|
65
98
|
|
|
66
99
|
Start your typescript-express-starter app in development mode at `http://localhost:3000/`
|
|
67
100
|
|
|
@@ -71,7 +104,7 @@ Start your typescript-express-starter app in development mode at `http://localho
|
|
|
71
104
|
| :------------------- | :----------------------------------------------------------------------------------------------------------- |
|
|
72
105
|
| Default | Express Default |
|
|
73
106
|
| Routing Controllers | Create structured, declarative and beautifully organized class-based controllers with heavy decorators usage |
|
|
74
|
-
|
|
|
107
|
+
| Sequelize | Easy to use multi SQL dialect ORM for Node.js |
|
|
75
108
|
| Mongoose | MongoDB Object Modeling(ODM) designed to work in an asynchronous environment |
|
|
76
109
|
| TypeORM | An ORM that can run in Node.js and Others |
|
|
77
110
|
| Prisma | Modern Database Access for TypeScript & Node.js |
|
|
@@ -88,25 +121,35 @@ Start your typescript-express-starter app in development mode at `http://localho
|
|
|
88
121
|
|
|
89
122
|
## ๐ The Package Features
|
|
90
123
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-

|
|
94
|
-

|
|
101
|
-

|
|
127
|
+

|
|
128
|
+

|
|
129
|
+

|
|
130
|
+
|
|
131
|
+
- DevOps
|
|
132
|
+
|
|
133
|
+
- 
|
|
134
|
+

|
|
135
|
+

|
|
136
|
+

|
|
137
|
+

|
|
138
|
+

|
|
139
|
+
|
|
140
|
+
- Utilities
|
|
141
|
+
|
|
142
|
+
- 
|
|
143
|
+
|
|
144
|
+
- Database
|
|
145
|
+
- 
|
|
146
|
+

|
|
147
|
+

|
|
148
|
+

|
|
106
149
|
|
|
107
150
|
> [Simple Icons](https://simpleicons.org/)
|
|
108
151
|
|
|
109
|
-
### ๐ณ Docker
|
|
152
|
+
### ๐ณ Docker :: Container Platform
|
|
110
153
|
|
|
111
154
|
[Docker](https://docs.docker.com/) is a platform for developers and sysadmins to build, run, and share applications with containers.
|
|
112
155
|
|
|
@@ -117,7 +160,7 @@ Start your typescript-express-starter app in development mode at `http://localho
|
|
|
117
160
|
|
|
118
161
|
Modify `docker-compose.yml` and `Dockerfile` file to your source code.
|
|
119
162
|
|
|
120
|
-
### โป๏ธ NGINX
|
|
163
|
+
### โป๏ธ NGINX :: Web Server
|
|
121
164
|
|
|
122
165
|
[NGINX](https://www.nginx.com/) is a web server that can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache.
|
|
123
166
|
|
|
@@ -127,16 +170,12 @@ When NGINX proxies a request, it sends the request to a specified proxied server
|
|
|
127
170
|
|
|
128
171
|
Modify `nginx.conf` file to your source code.
|
|
129
172
|
|
|
130
|
-
### โจ ESLint, Prettier
|
|
131
|
-
|
|
132
|
-
Palantir, the backers behind TSLint announced in 2019 that they would be deprecating TSLint in favor of supporting typescript-eslint in order to benefit the community.
|
|
173
|
+
### โจ ESLint, Prettier :: Code Formatter
|
|
133
174
|
|
|
134
|
-
|
|
175
|
+
[Prettier](https://prettier.io/) is an opinionated code formatter.
|
|
135
176
|
|
|
136
177
|
[ESLint](https://eslint.org/), Find and fix problems in your JavaScript code
|
|
137
178
|
|
|
138
|
-
[Prettier](https://prettier.io/) is an opinionated code formatter.
|
|
139
|
-
|
|
140
179
|
It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
|
|
141
180
|
|
|
142
181
|
1. Install [VSCode](https://code.visualstudio.com/) Extension [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode), [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
|
|
@@ -149,9 +188,12 @@ It enforces a consistent style by parsing your code and re-printing it with its
|
|
|
149
188
|
|
|
150
189
|
5. Prettier - Code formatter
|
|
151
190
|
|
|
152
|
-
<img src=
|
|
191
|
+
<img src="https://user-images.githubusercontent.com/42952358/126604937-4ef50b61-b7e4-4635-b3c9-3c94dd6b06fa.png" alt="Formatter Setting" />
|
|
192
|
+
|
|
193
|
+
> Palantir, the backers behind TSLint announced in 2019 that they would be deprecating TSLint in favor of supporting typescript-eslint in order to benefit the community.
|
|
194
|
+
> So, migration from TSLint to ESLint.
|
|
153
195
|
|
|
154
|
-
### ๐ Swagger
|
|
196
|
+
### ๐ Swagger :: API Document
|
|
155
197
|
|
|
156
198
|
[Swagger](https://swagger.io/) is Simplify API development for users, teams, and enterprises with the Swagger open source and professional toolset.
|
|
157
199
|
|
|
@@ -161,13 +203,33 @@ Start your app in development mode at `http://localhost:3000/api-docs`
|
|
|
161
203
|
|
|
162
204
|
Modify `swagger.yaml` file to your source code.
|
|
163
205
|
|
|
164
|
-
### ๐ REST Client
|
|
206
|
+
### ๐ REST Client :: HTTP Client Tools
|
|
165
207
|
|
|
166
208
|
REST Client allows you to send HTTP request and view the response in Visual Studio Code directly.
|
|
167
209
|
|
|
168
210
|
VSCode Extension [REST Client](https://marketplace.visualstudio.com/items?itemName=humao.rest-client) Install.
|
|
169
211
|
|
|
170
|
-
Modify `*.http` file in http folder to your source code.
|
|
212
|
+
Modify `*.http` file in src/http folder to your source code.
|
|
213
|
+
|
|
214
|
+
### ๐ฎ PM2 :: Advanced, Production process manager for Node.js
|
|
215
|
+
|
|
216
|
+
[PM2](https://pm2.keymetrics.io/) is a daemon process manager that will help you manage and keep your application online 24/7.
|
|
217
|
+
|
|
218
|
+
- production mode :: `npm run deploy:prod` or `pm2 start ecosystem.config.js --only prod`
|
|
219
|
+
- development mode :: `npm run deploy:dev` or `pm2 start ecosystem.config.js --only dev`
|
|
220
|
+
|
|
221
|
+
Modify `ecosystem.config.js` file to your source code.
|
|
222
|
+
|
|
223
|
+
### ๐ SWC :: a super-fast JavaScript / TypeScript compiler
|
|
224
|
+
|
|
225
|
+
[SWC](https://swc.rs/) is an extensible Rust-based platform for the next generation of fast developer tools.
|
|
226
|
+
|
|
227
|
+
`SWC is 20x faster than Babel on a single thread and 70x faster on four cores.`
|
|
228
|
+
|
|
229
|
+
- swc build :: `npm run build`
|
|
230
|
+
- tsc build :: `npm run build:tsc`
|
|
231
|
+
|
|
232
|
+
Modify `.swcrc` file to your source code.
|
|
171
233
|
|
|
172
234
|
## ๐ Code Structure (default)
|
|
173
235
|
|
|
@@ -231,6 +293,7 @@ Modify `*.http` file in http folder to your source code.
|
|
|
231
293
|
โ โ โโโ vaildateEnv.ts
|
|
232
294
|
โ โ
|
|
233
295
|
โ โโโ app.ts
|
|
296
|
+
โ โโโ index.ts
|
|
234
297
|
โ โโโ server.ts
|
|
235
298
|
โ
|
|
236
299
|
โโโ .dockerignore
|
|
@@ -242,6 +305,7 @@ Modify `*.http` file in http folder to your source code.
|
|
|
242
305
|
โโโ .huskyrc
|
|
243
306
|
โโโ .lintstagedrc.json
|
|
244
307
|
โโโ .prettierrc
|
|
308
|
+
โโโ .swcrc
|
|
245
309
|
โโโ docker-compose.yml
|
|
246
310
|
โโโ Dockerfile
|
|
247
311
|
โโโ ecosystem.config.js
|
|
@@ -255,21 +319,13 @@ Modify `*.http` file in http folder to your source code.
|
|
|
255
319
|
โโโ tsconfig.json
|
|
256
320
|
```
|
|
257
321
|
|
|
258
|
-
##
|
|
322
|
+
## โญ๏ธ Stargazers
|
|
259
323
|
|
|
260
|
-
|
|
261
|
-
| :--------------- | :----------------- |
|
|
262
|
-
| Add Feature | โจ Add Feature |
|
|
263
|
-
| Fix Bug | ๐ Fix Bug |
|
|
264
|
-
| Refactoring Code | ๐ Refactoring Code |
|
|
265
|
-
| Install Package | ๐ฆ Install Package |
|
|
266
|
-
| Fix Readme | ๐ Fix Readme |
|
|
267
|
-
| Update Version | ๐ผ Update Version |
|
|
268
|
-
| New Template | ๐ New Template |
|
|
324
|
+
[](https://github.com/ljlm0402/typescript-express-starter/stargazers)
|
|
269
325
|
|
|
270
|
-
##
|
|
326
|
+
## ๐ด Forkers
|
|
271
327
|
|
|
272
|
-
[
|
|
328
|
+
[](https://github.com/ljlm0402/typescript-express-starter/network/members)
|
|
273
329
|
|
|
274
330
|
## ๐ค Contributors
|
|
275
331
|
|
|
@@ -307,8 +363,32 @@ Modify `*.http` file in http folder to your source code.
|
|
|
307
363
|
|
|
308
364
|
- michael r [https://github.com/alanmynah](https://github.com/alanmynah)
|
|
309
365
|
|
|
366
|
+
- Benjamin [https://github.com/benjaminudoh10](https://github.com/benjaminudoh10)
|
|
367
|
+
|
|
368
|
+
- Amrik Singh [https://github.com/AmrikSD](https://github.com/AmrikSD)
|
|
369
|
+
|
|
370
|
+
- oricc [https://github.com/oricc](https://github.com/oricc)
|
|
371
|
+
|
|
372
|
+
## ๐ณ License
|
|
373
|
+
|
|
374
|
+
[MIT](LICENSE)
|
|
375
|
+
|
|
376
|
+
## ๐ฌ Recommended Commit Message
|
|
377
|
+
|
|
378
|
+
| When | Commit Message |
|
|
379
|
+
| :--------------- | :----------------- |
|
|
380
|
+
| Add Feature | โจ Add Feature |
|
|
381
|
+
| Fix Bug | ๐ Fix Bug |
|
|
382
|
+
| Refactoring Code | ๐ Refactoring Code |
|
|
383
|
+
| Install Package | ๐ฆ Install Package |
|
|
384
|
+
| Fix Readme | ๐ Fix Readme |
|
|
385
|
+
| Update Version | ๐ผ Update Version |
|
|
386
|
+
| New Template | ๐ New Template |
|
|
387
|
+
|
|
310
388
|
## ๐ฌ Please request an issue
|
|
311
389
|
|
|
312
390
|
In the future, please write down your desired template, questions, and features to be added, and we will try our best to answer and reflect them.
|
|
313
391
|
|
|
314
|
-
Thank you very much for your interest in our package.
|
|
392
|
+
Thank you very much for your interest in our package.
|
|
393
|
+
|
|
394
|
+
# (เนหฬตแดหฬต)ู
|
package/bin/cli.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
/*****************************************************************
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Typescript Express Starter
|
|
5
|
+
* 2019.12.18 ~ ๐ฎ
|
|
6
|
+
* Made By AGUMON ๐ฆ
|
|
7
|
+
* https://github.com/ljlm0402/typescript-express-starter
|
|
7
8
|
*****************************************************************/
|
|
8
9
|
|
|
9
10
|
const path = require("path");
|