Skip to content

Commit

Permalink
Add typeorm configuration and logging/tracing architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejkang committed Sep 6, 2024
1 parent 1e97692 commit abc7ddc
Show file tree
Hide file tree
Showing 18 changed files with 2,464 additions and 209 deletions.
11 changes: 11 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# MySQL
MYSQL_HOST=${MYSQL_HOST}
MYSQL_PORT=${MYSQL_PORT}
MYSQL_USER=${MYSQL_USER}
MYSQL_PASSWORD=${MYSQL_PASSWORD}
MYSQL_DATABASE=${MYSQL_DATABASE}

# JWT
JWT_SECRET=${JWT_SECRET}

# Secret
AES_SECRET=${AES_SECRET}

# AWS
AWS_CLOUDWATCH_ACCESS_KEY_ID=${AWS_CLOUDWATCH_ACCESS_KEY_ID}
AWS_CLOUDWATCH_SECRET_ACCESS_KEY=${AWS_CLOUDWATCH_SECRET_ACCESS_KEY}
12 changes: 11 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ module.exports = {
'semi': 'off',
'quotes': 'off',
'brace-style': 'off',
'comma-dangle': [
'error',
{
'arrays': 'always-multiline',
'objects': 'always-multiline',
'imports': 'always-multiline',
'exports': 'always-multiline',
'functions': 'always-multiline',
},
],
'@typescript-eslint/dot-notation': 'error',
'@typescript-eslint/explicit-function-return-type': 'error',
"@typescript-eslint/init-declarations": "warn",
Expand Down Expand Up @@ -125,7 +135,7 @@ module.exports = {
}
],
'@typescript-eslint/no-unnecessary-condition': 'warn',
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
'@typescript-eslint/no-unnecessary-type-arguments': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-useless-empty-export': 'error',
'@typescript-eslint/no-useless-constructor': 'off',
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/deployment-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ jobs:
NODE_ENV: development
JWT_SECRET: ${{ secrets.JWT_SECRET }}
AES_SECRET: ${{ secrets.AES_SECRET }}
MYSQL_HOST: ${{ secrets.MYSQL_HOST }}
MYSQL_PORT: ${{ secrets.MYSQL_PORT }}
MYSQL_USER: ${{ secrets.MYSQL_USER }}
MYSQL_PASSWORD: ${{ secrets.MYSQL_PASSWORD }}
MYSQL_DATABASE: ${{ secrets.MYSQL_DATABASE }}
AWS_CLOUDWATCH_ACCESS_KEY_ID: ${{ secrets.AWS_CLOUDWATCH_ACCESS_KEY_ID }}
AWS_CLOUDWATCH_SECRET_ACCESS_KEY: ${{ secrets.AWS_CLOUDWATCH_SECRET_ACCESS_KEY }}

run: |
cat .env.example | envsubst > .env
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/deployment-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ jobs:
NODE_ENV: production
JWT_SECRET: ${{ secrets.JWT_SECRET }}
AES_SECRET: ${{ secrets.AES_SECRET }}
MYSQL_HOST: ${{ secrets.MYSQL_HOST }}
MYSQL_PORT: ${{ secrets.MYSQL_PORT }}
MYSQL_USER: ${{ secrets.MYSQL_USER }}
MYSQL_PASSWORD: ${{ secrets.MYSQL_PASSWORD }}
MYSQL_DATABASE: ${{ secrets.MYSQL_DATABASE }}
AWS_CLOUDWATCH_ACCESS_KEY_ID: ${{ secrets.AWS_CLOUDWATCH_ACCESS_KEY_ID }}
AWS_CLOUDWATCH_SECRET_ACCESS_KEY: ${{ secrets.AWS_CLOUDWATCH_SECRET_ACCESS_KEY }}

run: |
cat .env.example | envsubst > .env
Expand Down
Loading

0 comments on commit abc7ddc

Please sign in to comment.