Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
theoludwig committed Oct 24, 2021
0 parents commit 714cc64
Show file tree
Hide file tree
Showing 260 changed files with 40,783 additions and 0 deletions.
1 change: 1 addition & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "extends": ["@commitlint/config-conventional"] }
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.vscode
.git
build
coverage
node_modules
tmp
temp
**/__test__/**
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# For more information see: https://editorconfig.org/

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
22 changes: 22 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
COMPOSE_PROJECT_NAME=thream-api
PORT=8080
API_BASE_URL=http://localhost:8080
DATABASE_DIALECT=mysql
DATABASE_HOST=thream-database
DATABASE_NAME=thream
DATABASE_USER=root
DATABASE_PASSWORD=password
DATABASE_PORT=3306
JWT_ACCESS_EXPIRES_IN=15 minutes
JWT_ACCESS_SECRET=accessTokenSecret
JWT_REFRESH_SECRET=refreshTokenSecret
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
EMAIL_HOST=thream-maildev
EMAIL_USER=[email protected]
EMAIL_PASSWORD=password
EMAIL_PORT=25
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: '🐛 Bug Report'
about: 'Report an unexpected problem or unintended behavior.'
title: '[Bug]'
labels: 'bug'
---

<!--
Please provide a clear and concise description of what the bug is. Include
screenshots if needed. Please make sure your issue has not already been fixed.
-->

## Steps To Reproduce

1. Step 1
2. Step 2

## The current behavior

## The expected behavior
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/DOCUMENTATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: '📜 Documentation'
about: 'Correct spelling errors, improvements or additions to documentation files (README, CONTRIBUTING...).'
title: '[Documentation]'
labels: 'documentation'
---

<!-- Please make sure your issue has not already been fixed. -->

## Documentation

<!-- Please uncomment the type of documentation problem this issue address -->

<!-- Documentation is Missing -->
<!-- Documentation is Confusing -->
<!-- Documentation has Typo errors -->

## Proposal
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: '✨ Feature Request'
about: 'Suggest a new feature idea.'
title: '[Feature]'
labels: 'feature request'
---

<!-- Please make sure your issue has not already been fixed. -->

## Description

<!-- A clear and concise description of the problem or missing capability... -->

## Describe the solution you'd like

<!-- If you have a solution in mind, please describe it. -->

## Describe alternatives you've considered

<!-- Have you considered any alternative solutions or workarounds? -->
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/IMPROVEMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: '🔧 Improvement'
about: 'Improve structure/format/performance/refactor/tests of the code.'
title: '[Improvement]'
labels: 'improvement'
---

<!-- Please make sure your issue has not already been fixed. -->

## Type of Improvement

<!-- Please uncomment the type of improvements this issue address -->

<!-- Files and Folders Structure -->
<!-- Performance -->
<!-- Refactoring code -->
<!-- Tests -->
<!-- Not Sure? -->

## Proposal
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/QUESTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: '🙋 Question'
about: 'Further information is requested.'
title: '[Question]'
labels: 'question'
---

### Question
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Please first discuss the change you wish to make via issue before making a change. It might avoid a waste of your time. -->

## What changes this PR introduce?

## List any relevant issue numbers

## Is there anything you'd like reviewers to focus on?
27 changes: 27 additions & 0 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 'Analyze'

on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]

jobs:
analyze:
runs-on: 'ubuntu-latest'

strategy:
fail-fast: false
matrix:
language: ['javascript']

steps:
- uses: 'actions/[email protected]'

- name: 'Initialize CodeQL'
uses: 'github/codeql-action/init@v1'
with:
languages: ${{ matrix.language }}

- name: 'Perform CodeQL Analysis'
uses: 'github/codeql-action/analyze@v1'
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'Build'

on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]

jobs:
build:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v2'

- name: 'Use Node.js'
uses: 'actions/[email protected]'
with:
node-version: '16.x'

- name: 'Install'
run: 'npm ci --cache .npm --prefer-offline'

- name: 'Build'
run: 'npm run build'
27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 'Lint'

on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]

jobs:
lint:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v2'

- name: 'Use Node.js'
uses: 'actions/[email protected]'
with:
node-version: '16.x'

- name: 'Install'
run: 'npm ci --cache .npm --prefer-offline'

- run: 'npm run lint:commit -- --to "${{ github.sha }}"'
- run: 'npm run lint:editorconfig'
- run: 'npm run lint:markdown'
- run: 'npm run lint:docker'
- run: 'npm run lint:typescript'
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'Test'

on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]

jobs:
test:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v2'

- name: 'Use Node.js'
uses: 'actions/[email protected]'
with:
node-version: '16.x'

- name: 'Install'
run: 'npm ci --cache .npm --prefer-offline'

- name: 'Test'
run: 'npm run test'
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# dependencies
node_modules
.npm

# production
build

# testing
coverage

# envs
.env
.env.production

# debug
npm-debug.log*

# editors
.vscode
.theia
.idea

# misc
.DS_Store
tmp
temp
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint:commit -- --edit
8 changes: 8 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint:docker
npm run lint:editorconfig
npm run lint:markdown
npm run lint:typescript
npm run build
7 changes: 7 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"default": true,
"MD013": false,
"MD024": false,
"MD033": false,
"MD041": false
}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
Loading

0 comments on commit 714cc64

Please sign in to comment.