From 067996357a60e24c2a4e8da5df3d5114b6b8b53b Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 20 Apr 2020 18:40:28 +0200 Subject: [PATCH] Inital commit --- .drone.yml | 47 + .gitignore | 113 + .vscode/extensions.json | 9 + .vscode/settings.json | 27 + COMMIT_CONVENTION.md | 78 + README.md | 121 + server/ .eslintignore | 6 + server/.env.example | 3 + server/.eslintrc.js | 89 + server/gulpfile.js | 144 + server/package-lock.json | 12909 ++++++++++++++++ server/package.json | 62 + server/server.js | 2 + server/src/app/app.module.ts | 9 + server/src/app/controllers/app.controller.ts | 26 + .../app/schemas/interfaces/user.interface.ts | 5 + server/src/server.ts | 45 + server/tsconfig.json | 23 + webapp/src/js/app.js | 64 + webapp/src/scss/_animations.scss | 1 + webapp/src/scss/index.scss | 14 + webapp/src/scss/noscript.scss | 1 + webapp/src/views/index.hbs | 2 + webapp/src/views/layouts/main.hbs | 13 + webapp/src/views/partials/footer.hbs | 10 + webapp/src/views/partials/head.hbs | 15 + webapp/src/views/room.hbs | 7 + 27 files changed, 13845 insertions(+) create mode 100644 .drone.yml create mode 100644 .gitignore create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json create mode 100644 COMMIT_CONVENTION.md create mode 100644 README.md create mode 100644 server/ .eslintignore create mode 100644 server/.env.example create mode 100644 server/.eslintrc.js create mode 100644 server/gulpfile.js create mode 100644 server/package-lock.json create mode 100644 server/package.json create mode 100644 server/server.js create mode 100644 server/src/app/app.module.ts create mode 100644 server/src/app/controllers/app.controller.ts create mode 100644 server/src/app/schemas/interfaces/user.interface.ts create mode 100644 server/src/server.ts create mode 100644 server/tsconfig.json create mode 100644 webapp/src/js/app.js create mode 100644 webapp/src/scss/_animations.scss create mode 100644 webapp/src/scss/index.scss create mode 100644 webapp/src/scss/noscript.scss create mode 100644 webapp/src/views/index.hbs create mode 100644 webapp/src/views/layouts/main.hbs create mode 100644 webapp/src/views/partials/footer.hbs create mode 100644 webapp/src/views/partials/head.hbs create mode 100644 webapp/src/views/room.hbs diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..1a52be3 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,47 @@ +kind: pipeline +name: default + +steps: +- name: install + image: node:13.13 + commands: + - npm --prefix ./server install ./server + +- name: test + image: node:13.13 + commands: + - npm --prefix ./server run test + +- name: lint + image: node:13.13 + commands: + - npm --prefix ./server run lint + +- name: build + image: node:13.13 + commands: + - npm --prefix ./server run build + when: + event: + - push + - tag + - deployment + +- name: deploy + image: plugins/docker + settings: + registry: registry.cliffbreak.de + repo: registry.cliffbreak.de/landingpage + username: + from_secret: docker_username + password: + from_secret: docker_password + when: + event: + - push + - tag + - deployment + +trigger: + branch: + - master \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57783f5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,113 @@ +# ---> Node +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# Next.js build output +.next + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +## Custom direcotries +dist/ +mongo/ +webapp/assets/ diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..e98d5dd --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,9 @@ +{ + "recommendations": [ + "dbaeumer.vscode-eslint", + "sibiraj-s.vscode-scss-formatter", + "mikestead.dotenv", + "streetsidesoftware.code-spell-checker", + "streetsidesoftware.code-spell-checker-german", + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d247473 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,27 @@ +{ + "editor.formatOnSave": true, + "eslint.workingDirectories": [ + "./server", + "./webapp" + ], + "eslint.format.enable": true, + "cSpell.language": "de,en,de-DE,en-US", + "cSpell.words": [ + "Cliffbreak", + "Fastify", + "Giesel", + "Roboto", + "browserconfig", + "camelcase", + "cliffbreakmeet", + "dbpath", + "favicon", + "ijmap", + "mkdir", + "mongod", + "msapplication", + "nestjs", + "playsinline", + "uglifycss" + ], +} \ No newline at end of file diff --git a/COMMIT_CONVENTION.md b/COMMIT_CONVENTION.md new file mode 100644 index 0000000..f49a4f1 --- /dev/null +++ b/COMMIT_CONVENTION.md @@ -0,0 +1,78 @@ +### Commit Message Format + +Each commit message consists of a **header**, a **body** and a **footer**. The header has a special +format that includes a **type**, a **scope** and a **subject**: + +``` +(): + + + +