ce45ed7b7f
All file imports change from commonjs to es-module
2022-08-22 23:03:19 +02:00
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
1815a429b0
Fix: Linter warnings ( #137 )
...
* 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
2022-08-20 17:21:25 +02:00
cfbd4965db
Merge pull request #136 from KevinMidboe/feat/emoji-from-codepoint
...
Feat: Emoji from code point
2022-08-19 10:18:35 +02:00
31c4b8b7df
Replaced travis CI badge with Drone CI
2022-08-19 10:18:16 +02:00
a4b2e8f51c
Instead of having a list of emojis, generate from code point
2022-08-19 10:08:34 +02:00
11fb803838
Removed seasoned_api folder
2022-08-19 10:06:18 +02:00
b2d2b0025c
Merge pull request #134 from KevinMidboe/chore/seasoned_api-src-files
...
Chore: Seasoned api src files
2022-08-19 10:05:00 +02:00
ae9f3044bc
Removed vue reference in prettierc ( #135 )
2022-08-19 10:04:01 +02:00
0eab680527
Include yarn lock into docker container build
2022-08-19 01:28:40 +02:00
4204515e91
Updated COPY and RUN commands for new project dir structure
2022-08-19 01:24:55 +02:00
19e99e8c43
Updated eslint config & prepared ts config
2022-08-19 01:14:18 +02:00
007d34f994
Updated dockerfile with new config dir in root
2022-08-19 01:10:16 +02:00
5a1e18b839
All entrypoints updated after moving seasoned_api contents to root dir
2022-08-19 01:04:45 +02:00
56262a45c8
Moved contents of seasoned_api up to root folder
2022-08-19 01:03:27 +02:00
0efc109992
Moved old webpage, app & client into .archive folder
2022-08-19 00:44:25 +02:00
851af204ab
Remove python submodules
2022-08-19 00:43:41 +02:00
ccebf0d7b0
Merge pull request #132 from KevinMidboe/feat/drone-ci
...
Feat Drone CI & dockerize
2022-08-18 20:44:35 +02:00
76fe986f39
Merge branch 'feat/drone-ci' of github.com:KevinMidboe/seasonedShows into feat/drone-ci
2022-08-17 01:00:33 +02:00
fbf1ae8dec
Moved github files to .github/
2022-08-17 01:00:09 +02:00
9164b592bd
Copy folder seasoned_api not just contents, matches project structure
2022-08-17 00:59:34 +02:00
d77b427c3c
Copy folder seasoned_api not just contents, matches project structure
2022-08-17 00:40:58 +02:00
b56b1f6c0c
Environment variables now take presedence over local config
2022-08-17 00:20:17 +02:00
c8477fabaa
If redis fails to connect use a mock client to not crash
2022-08-17 00:19:22 +02:00
014cac8b06
Remove installing redis-server from apt on build
2022-08-17 00:18:34 +02:00
20d74cafb9
gchr repo name all lowercase
2022-08-16 01:22:35 +02:00
1690bbcdd0
Temporarly build and publish docker container on all push
2022-08-16 01:15:58 +02:00
7094aa2bb5
Updated all imports to be relative to itself
2022-08-16 01:15:36 +02:00
3660e88acf
Moved package.json up to root folder
2022-08-16 01:13:07 +02:00
d8f7f82127
Drone config w/ install and build docker container steps
2022-08-16 00:42:23 +02:00
0a4248bf30
Setup dockerfile for seasoned api project
...
TODO remove apt installing redis and running service internally
2022-08-16 00:41:33 +02:00
92d139a156
Prevent foreign key to user, no user crashes server
2022-08-16 00:40:56 +02:00
5578bf854a
Updated default config
2022-08-16 00:39:01 +02:00
5648b8fffa
Merge pull request #130 from KevinMidboe/feat/cookie-authentication
...
Feat/cookie authentication
2022-08-15 23:59:12 +02:00
1b7a754224
Merge pull request #131 from KevinMidboe/feat/credits
...
Feat/credits
2022-08-15 23:58:54 +02:00
5d91f1bae7
TODO sms code
2022-08-15 23:51:18 +02:00
cdcfae56e7
Allow set-cookie & allow credentials
2022-08-15 23:39:39 +02:00
f2c77e092d
Safer imports in credits
2022-08-15 23:38:53 +02:00
d6ac7e55e9
Better matching when getting matchin plex title & year
2022-08-15 23:38:35 +02:00
a3543090f2
Translate plex query params to fixed
2022-08-15 23:37:07 +02:00
041e944783
Upgraded bcrypt & sqlite3
2022-08-15 23:36:02 +02:00
bfd31ebd23
Linting
2022-03-06 11:59:32 +01:00
5036f4ca36
Read and pass adult search query param consistently for movie, show & person info
2022-03-06 11:57:45 +01:00
61b59ae3ea
Person info now handles optional credits query parameter
2022-03-06 11:55:32 +01:00
92c49ac523
Registered endpoint for person credits
2022-03-06 11:54:56 +01:00
f680642f25
When fetching credits for person we get movie & show objects, now handled here.
2022-03-06 11:54:22 +01:00
f89486ae9e
Sepearate controller and tmdb function for fetching personCredits
2022-03-06 11:53:45 +01:00
4d853565d1
Person gets biography & place_of_birth attributes
2022-03-06 11:50:20 +01:00
91c81e5cf6
Use cookie-parser, updated tokenToUser middleware & set logout endpoint
2022-03-06 10:39:34 +01:00
0ecbde9675
Logout endpoint for deleting auth cookie
2022-03-06 10:36:24 +01:00