Skip to content

Commit

Permalink
v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliboy50 committed Feb 16, 2019
0 parents commit 9d68c72
Show file tree
Hide file tree
Showing 18 changed files with 4,501 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
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
17 changes: 17 additions & 0 deletions README.md
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)
3 changes: 3 additions & 0 deletions api/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git
node_modules
npm-debug.log
34 changes: 34 additions & 0 deletions api/.eslintrc.js
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',
],
},
};
5 changes: 5 additions & 0 deletions api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/node_modules/
npm-debug.log

/data/
!/data/.gitkeep
24 changes: 24 additions & 0 deletions api/Dockerfile
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
10 changes: 10 additions & 0 deletions api/config/default.js
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,
},
};
3 changes: 3 additions & 0 deletions api/nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ignore": ["data"]
}
Loading

0 comments on commit 9d68c72

Please sign in to comment.