Merge pull request #134 from KevinMidboe/chore/seasoned_api-src-files

Chore: Seasoned api src files
This commit is contained in:
2022-08-19 10:05:00 +02:00
committed by GitHub
209 changed files with 1490 additions and 414 deletions

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -1,2 +1 @@
**/node_modules
**/yarn.lock

14
.eslintrc.json Normal file
View File

@@ -0,0 +1,14 @@
{
"root": true,
"parserOptions": {
"sourceType": "module"
},
"extends": [
"eslint-config-airbnb-base",
"plugin:prettier/recommended"
],
"rules": {
"no-underscore-dangle": "off",
"no-shadow": "off"
}
}

18
.eslintrc.ts.json Normal file
View File

@@ -0,0 +1,18 @@
{
"root": true,
"parserOptions": {
"parser": "@typescript-eslint/parser",
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint-config-airbnb-base",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"rules": {
"no-underscore-dangle": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"]
}
}

10
.gitmodules vendored
View File

@@ -1,10 +0,0 @@
# Docs : https://git-scm.com/book/en/v2/Git-Tools-Submodules
[submodule "torrent_search"]
path = torrent_search
url = https://github.com/KevinMidboe/torrent_search.git
branch = master
[submodule "delugeClient"]
path = delugeClient
url = https://github.com/KevinMidboe/delugeClient.git

View File

@@ -5,6 +5,5 @@
"singleQuote": false,
"bracketSpacing": true,
"arrowParens": "avoid",
"vueIndentScriptAndStyle": false,
"trailingComma": "none"
}

View File

@@ -1,16 +1,18 @@
FROM node:18
RUN mkdir -p /opt/seasonedShows/seasoned_api
RUN mkdir -p /opt/seasonedShows/src
WORKDIR /opt/seasonedShows
COPY seasoned_api/ seasoned_api
COPY src/ src
COPY configurations/ configurations
COPY package.json .
COPY yarn.lock .
RUN apt update
RUN apt install node-pre-gyp -y
RUN yarn
RUN cp seasoned_api/conf/development.json.example seasoned_api/conf/development.json
RUN cp configurations/development.json.example configurations/development.json
EXPOSE 31459

View File

@@ -0,0 +1,31 @@
{
"database": {
"host": "/Users/kevin/dev/seasonedShows/shows.db"
},
"webserver": {
"port": 31459,
"origins": ["https://kevinmidboe.com", "https://seasoned.show", "https://request.movie"]
},
"tmdb": {
"apiKey": "9fa154f5355c37a1b9b57ac06e7d6712"
},
"plex": {
"ip": "blex.schleppe"
},
"tautulli": {
"apiKey": "4e759f7acabf4f1a8893825e6acd522b",
"ip": "blex.schleppe",
"port": "8181"
},
"raven": {
"DSN": ""
},
"authentication": {
"secret": "secret"
},
"sms": {
"apikey": "qK48YChORZOX4FqAwgzdOrfYT2-bixwshtRe-BogNksBZyUrMHLTh0-XOjsxziPV",
"sender": "Seasoned",
"recipient": 41498549
}
}

View File

@@ -7,14 +7,15 @@
},
"main": "webserver/server.js",
"scripts": {
"start": "yarn cross-env SEASONED_CONFIG=conf/development.json NODE_ENV=production babel-node seasoned_api/src/webserver/server.js",
"test": "cross-env SEASONED_CONFIG=conf/test.json NODE_PATH=. mocha --require @babel/register --recursive seasoned_api/test/unit seasoned_api/test//system",
"coverage": "cross-env SEASONED_CONFIG=conf/test.json NODE_PATH=. nyc mocha --require @babel/register --recursive test && nyc report --reporter=text-lcov | coveralls",
"lint": "eslint seasoned_api/src",
"update": "cross-env SEASONED_CONFIG=conf/development.json NODE_PATH=. node seasoned_api/scripts/updateRequestsInPlex.js",
"start": "yarn cross-env SEASONED_CONFIG=configurations/production.json NODE_ENV=production babel-node src/webserver/server.js",
"dev": "yarn cross-env SEASONED_CONFIG=configurations/development.json NODE_ENV=development babel-node src/webserver/server.js",
"test": "cross-env SEASONED_CONFIG=configurations/test.json NODE_PATH=. mocha --require @babel/register --recursive tests/unit tests/system",
"coverage": "cross-env SEASONED_CONFIG=configurations/test.json NODE_PATH=. nyc mocha --require @babel/register --recursive test && nyc report --reporter=text-lcov | coveralls",
"lint": "eslint src",
"update": "cross-env SEASONED_CONFIG=configurations/development.json NODE_PATH=. node scripts/updateRequestsInPlex.js",
"docs": "yarn apiDocs; yarn classDocs",
"apiDocs": "",
"classDocs": "seasoned_api/script/generate-class-docs.sh"
"classDocs": "scripts/generate-class-docs.sh"
},
"dependencies": {
"axios": "^0.18.0",
@@ -43,15 +44,17 @@
"@types/node": "^12.6.8",
"coveralls": "^3.0.5",
"documentation": "^12.0.3",
"eslint": "^4.9.0",
"eslint-config-airbnb-base": "^12.1.0",
"eslint": "^8.22.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-prettier": "^4.2.1",
"istanbul": "^0.4.5",
"mocha": "^6.2.0",
"mocha-lcov-reporter": "^1.3.0",
"nyc": "^11.6.0",
"prettier": "^2.7.1",
"supertest": "^3.0.0",
"supertest-as-promised": "^4.0.1",
"typescript": "^3.5.3"
"supertest-as-promised": "^4.0.1"
}
}

View File

@@ -1,14 +0,0 @@
{
"extends": [
"airbnb-base"
],
"rules": {
"indent": ["error", 3],
"prefer-destructuring": 0,
"camelcase": 0,
"import/no-unresolved": 0,
"import/no-extraneous-dependencies": 0,
"object-shorthand": 0,
"comma-dangle": 0
}
}

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More