23 Commits

Author SHA1 Message Date
628ed52012 Fix: Tests lint and src folder (#138)
* Automaticly fixable eslint issues, mostly 3 -> 2 space indentation

* fix: updated plex_userid to camelcase

* Linted and some consistency refactor on middleware

* eslint uses ecmaversion 2020 & allow empty catch rule

* Started linting source files

* Fixed eslint errors & improved a lot of error handling

* Set 2 eslint rules as warning temporarly

* Updated all import statements to be relative

* Updated mocha & nyc, resolved all lint issues in tests/

* Updated mocha & nyc. Removed production config. Updated gitignore

* Updated test commands to omit system tests, no exit code

* Updated test configuration w/ missing keys

* Chai modules defined in package.json & resolved linting errors

* Dockerfile copies development.example -> production.json. Simplified commands

* All api calls from tests use same chaiHttp implementation

Removes a list of fetch alternatives after being replaced by chaiHttp:
 - request
 - request-promise
 - supertest
 - supertest-as-promised

* Tests should use redis (mock) cache, not tmdb sqlite cache

* Disabled test asADeveloperIWantTheServerToStart

* Re-enable tests/system

* Use chaiHttp in asAUserIWantToRequestAMovie.

* Fixed redis expire & mock implmentation

* Replaced all fetch alternatives from source code and package.json

* Pass error from tmdb api back to client as errorMessage

* Updated authentication middleware to handle checks consitenctly

* Prevent assert error when checking request status, returns success 200

* Resolved merge conflicts

* Only build and publish docker container when branch master
2022-08-20 17:41:46 +02:00
3660e88acf Moved package.json up to root folder 2022-08-16 01:13:07 +02:00
4019d63f3b Created example config and added development config to gitignore 2019-06-28 22:39:24 +02:00
790f5d6588 Added travis support to api. 2017-12-20 20:46:15 +01:00
57658f10c1 Used the wrong shows.db. Now corrected. 2017-11-28 22:25:06 +01:00
2421b04548 Removed last commented line. 2017-11-28 19:25:23 +01:00
ff78dfbd50 Cleaned up in the main gitignore file and moved seasoned_api related ignore to its child file. 2017-11-28 19:24:47 +01:00
5da57062a7 Added a gitignore for each main folder because we have python based scripts in one folder, javascript/react and javascript/node in the other. 2017-11-28 19:19:50 +01:00
be4c79ca16 Added env folder to gitignore 2017-11-28 19:10:45 +01:00
0e4f96640c Ommited to entire conf folder in api. 2017-11-04 19:34:28 +01:00
dc685ebcdd Removed conf files from api. 2017-11-04 19:30:57 +01:00
5e50d52344 Now gitignore is working for new prefs. 2017-10-04 14:25:05 +02:00
44d8dbfe0c Updated gitignore to include yarn.locks. 2017-09-27 00:30:51 +02:00
10da9874fc Added yarn error log 2017-08-06 09:22:26 +02:00
6322b0b17b Formatting changes, sorted alpha 2017-07-16 13:45:05 +02:00
b34e23077b Updated gitignore with dist folder 2017-07-16 11:08:36 +02:00
48188f859e Added conf/classedOutput.log 2017-05-15 11:59:44 +02:00
f6a77660db Added config file that should be autogenerated on startup 2017-05-10 19:49:45 -06:00
Kevin Midboe
ae52d04382 Ignored all .pyc files and node-debug.log 2017-04-13 12:32:35 +02:00
Kevin Midboe
294105f7ac Updated gitignore to reflect change of env.py filename to env_variables 2017-04-07 11:32:04 +02:00
8b81c33975 Started setup of webserver 2017-04-06 17:33:30 +02:00
Kevin Midboe
79a71c0cff Added ds_store and the env variables. 2017-04-06 10:14:09 +02:00
a8e1893d14 Now a git ignore to hide DS_Store and the shows database. 2017-04-05 18:56:53 +02:00