-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9d68c72
Showing
18 changed files
with
4,501 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# http://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 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = 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,17 @@ | ||
# blindtester | ||
|
||
> Send a video URL (e.g. YouTube) => Get a blindtest | ||
## Deploy | ||
|
||
### Local | ||
|
||
```shell | ||
docker-compose up -d | ||
``` | ||
|
||
## Documentation | ||
|
||
### API | ||
|
||
Created using [Feathers](https://feathersjs.com) |
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,3 @@ | ||
.git | ||
node_modules | ||
npm-debug.log |
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,34 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
es6: true, | ||
node: true | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2019, | ||
}, | ||
extends: 'eslint:recommended', | ||
rules: { | ||
indent: [ | ||
'error', | ||
2, | ||
], | ||
'linebreak-style': [ | ||
'error', | ||
'unix', | ||
], | ||
quotes: [ | ||
'error', | ||
'single', | ||
{ allowTemplateLiterals: true }, | ||
], | ||
semi: [ | ||
'error', | ||
'always', | ||
], | ||
'comma-dangle': [ | ||
'error', | ||
'always-multiline', | ||
], | ||
}, | ||
}; |
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 @@ | ||
/node_modules/ | ||
npm-debug.log | ||
|
||
/data/ | ||
!/data/.gitkeep |
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 @@ | ||
FROM node:11.9.0-alpine | ||
|
||
ENV PORT=3030 | ||
ENV NODE_APP_DIR=/home/node/app | ||
|
||
WORKDIR $NODE_APP_DIR | ||
|
||
RUN apk add --no-cache \ | ||
curl \ | ||
ffmpeg \ | ||
python \ | ||
&& curl -L https://yt-dl.org/downloads/2019.02.08/youtube-dl -o /usr/local/bin/youtube-dl \ | ||
&& chmod a+rx /usr/local/bin/youtube-dl \ | ||
&& npm install -g npm@6.8.0 | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install | ||
|
||
COPY . . | ||
|
||
EXPOSE $PORT | ||
|
||
CMD npm 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,10 @@ | ||
module.exports = { | ||
port: process.env.PORT, | ||
realBaseUrl: process.env.API_BASE_URL, | ||
slack: { | ||
verificationToken: process.env.SLACK_VERIFICATION_TOKEN, | ||
slackButtonState: process.env.SLACK_SLACK_BUTTON_STATE, | ||
clientId: process.env.SLACK_CLIENT_ID, | ||
clientSecret: process.env.SLACK_CLIENT_SECRET, | ||
}, | ||
}; |
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,3 @@ | ||
{ | ||
"ignore": ["data"] | ||
} |
Oops, something went wrong.