-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from ljlm0402/development
🌼 Update Version - v7.0.0
- Loading branch information
Showing
51 changed files
with
1,405 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# compiled output | ||
.vscode | ||
/node_modules | ||
|
||
# code formatter | ||
.eslintrc | ||
.eslintignore | ||
.editorconfig | ||
.huskyrc | ||
.lintstagedrc.json | ||
.prettierrc | ||
|
||
# test | ||
jest.config.js | ||
|
||
# docker | ||
Dockerfile | ||
docker-compose.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PORT=3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"extends": ["prettier", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"], | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"@typescript-eslint/explicit-member-accessibility": 0, | ||
"@typescript-eslint/explicit-function-return-type": 0, | ||
"@typescript-eslint/no-parameter-properties": 0, | ||
"@typescript-eslint/interface-name-prefix": 0, | ||
"@typescript-eslint/explicit-module-boundary-types": 0, | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/ban-types": "off", | ||
"@typescript-eslint/no-var-requires": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"*.ts": [ | ||
"npm run lint" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"printWidth": 150, | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"semi": true, | ||
"arrowParens": "avoid" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"jsc": { | ||
"parser": { | ||
"syntax": "typescript", | ||
"tsx": false, | ||
"dynamicImport": true, | ||
"decorators": true | ||
}, | ||
"transform": { | ||
"legacyDecorator": true, | ||
"decoratorMetadata": true | ||
}, | ||
"target": "es2017", | ||
"externalHelpers": false, | ||
"keepClassNames": true, | ||
"loose": false, | ||
"minify": { | ||
"compress": false, | ||
"mangle": false | ||
}, | ||
"baseUrl": "src", | ||
"paths": { | ||
"@/*": ["*"], | ||
"@databases": ["databases"], | ||
"@dtos/*": ["dtos/*"], | ||
"@entities/*": ["entities/*"], | ||
"@exceptions/*": ["exceptions/*"], | ||
"@interfaces/*": ["interfaces/*"], | ||
"@middlewares/*": ["middlewares/*"], | ||
"@repositories/*": ["repositories/*"], | ||
"@resolvers/*": ["resolvers/*"], | ||
"@typedefs/*": ["typedefs/*"], | ||
"@utils/*": ["utils/*"] | ||
} | ||
}, | ||
"module": { | ||
"type": "commonjs" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"name": "Dev typescript-express-starter", | ||
"command": "npm run dev" | ||
}, | ||
{ | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"name": "Start typescript-express-starter", | ||
"command": "npm run start" | ||
}, | ||
{ | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"name": "Test typescript-express-starter", | ||
"command": "npm run test" | ||
}, | ||
{ | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"name": "Lint typescript-express-starter", | ||
"command": "npm run lint" | ||
}, | ||
{ | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"name": "Lint:Fix typescript-express-starter", | ||
"command": "npm run lint:fix" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"editor.formatOnSave": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Common build stage | ||
FROM node:14.14.0-alpine3.12 as common-build-stage | ||
|
||
COPY . ./app | ||
|
||
WORKDIR /app | ||
|
||
RUN npm install | ||
|
||
EXPOSE 3000 | ||
|
||
# Development build stage | ||
FROM common-build-stage as development-build-stage | ||
|
||
ENV NODE_ENV development | ||
|
||
CMD ["npm", "run", "dev"] | ||
|
||
# Production build stage | ||
FROM common-build-stage as production-build-stage | ||
|
||
ENV NODE_ENV production | ||
|
||
CMD ["npm", "run", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
build: | ||
docker build -t ${tag} . | ||
clean: | ||
docker rmi -f ${tag} | ||
run: | ||
docker run -d -p ${port}:${port} --name ${name} ${tag} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
version: '3.7' | ||
|
||
services: | ||
proxy: | ||
image: nginx:alpine | ||
container_name: proxy | ||
ports: | ||
- '80:80' | ||
volumes: | ||
- ./nginx.conf:/etc/nginx/nginx.conf | ||
restart: 'unless-stopped' | ||
networks: | ||
- backend | ||
server: | ||
build: | ||
context: ./ | ||
target: development-build-stage | ||
dockerfile: Dockerfile | ||
container_name: server | ||
ports: | ||
- '3000:3000' | ||
volumes: | ||
- ./:/app | ||
- /app/node_modules | ||
restart: 'unless-stopped' | ||
networks: | ||
- backend | ||
links: | ||
- pg | ||
depends_on: | ||
- pg | ||
pg: | ||
image: bitnami/postgresql:11-debian-9 | ||
container_name: pg | ||
environment: | ||
POSTGRESQL_USERNAME: root | ||
POSTGRESQL_PASSWORD: password | ||
POSTGRESQL_DATABASE: test | ||
ports: | ||
- '5432:5432' | ||
networks: | ||
- backend | ||
|
||
networks: | ||
backend: | ||
driver: bridge | ||
|
||
volumes: | ||
data: | ||
driver: local |
Oops, something went wrong.