-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* enhance - use tsconfig-paths * fix - do tsconfig-path registeration * inhence - add dependent bot auto merge * inhen - call the paths registeration from server.ts * inhence - update logger * fix - convert base_controller to ts * fix - type validation * inhence - complete 3 files in #130 - auth_controller - github_controller - create_default_user * inhence - complete 5 files in TypeScript Migration Tasks #130 - user_controller - role_model - user_model - create_roles - role * inhence convert files to ts TypeScript Migration Tasks #130 * inhence - convert files to ts TypeScript Migration Tasks #130 * inhence - convert utils dir to ts #130 * fix - logger not defined inhence - TypeScript Migration Tasks #130 * fix - update apperror Fix app error #103 * fix - app error & use module paths Fix - app error #103 Database Seeding Enhancement: Improving REST API Initialization #108 Suggestion - Organizing Interfaces in an "Interfaces" Folder #129 * fix - - create interfaces for models, vendors and github repo - change testing framwork * enhnace - code optimixation AppError * enchance - convert swagger to ts 1st try * fix - convert to swagger-jsdoc * enhance - complete other routes * fix - create typings folder to manage .d.ts * fix some ts-ignore errors * fix - 2 ts ignore errors * fix - 3 ts ignore errors * fix - ts convert files #130 * testing tsoa * fix - github env * fix - use npm ci * fix - add env config for tests * test github variable * fix - run workflow when review approved * fix - server tsoa swagger docs * fix - remove dummy error handler * fix - github env vars & secrets
- Loading branch information
1 parent
0ff5e7d
commit a789de6
Showing
111 changed files
with
6,394 additions
and
5,260 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 |
---|---|---|
|
@@ -2,7 +2,6 @@ name: Node.js API CI | |
|
||
on: | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
approved: | ||
|
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 |
---|---|---|
|
@@ -2,6 +2,4 @@ | |
. "$(dirname "$0")/_/husky.sh" | ||
|
||
cd backend-app | ||
# disbale jest for now as it is not working | ||
# npx jest | ||
|
||
npm test |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
NODE_ENV = "development" | ||
API_VERSION = "v1" | ||
API_VERSION = "1.0.0" | ||
MONGO_URI = "mongodb://localhost:27017/S-W-O" | ||
MONGO_URI_TEST = "mongodb://localhost:27017/S-W-O-TEST" | ||
PORT = 5000 | ||
ADMIN_EMAIL = "[email protected]" | ||
ADMIN_PASSWORD = "password123418746" | ||
ACCESS_TOKEN_SECRET = "0d9acc2b4953578b7ed29c443b313082e3bd14c07f9747a6b65797a254137a9d175d95ce3faaf5f60f6d5f57dfa4bcd58151a3cc262aecb428592cee6f7c964b040ac46b4efb64171e8f3660ccf948189737d8d747f3f7f7c267277b4f7ff6000f2df0aa9b58b28e86f58f4a9e07748a31c771fc74306722d4416e024d17ce26" | ||
ACCESS_TOKEN_SECRET = "YourAccessTokenSecretKey" | ||
ACCESS_TOKEN_EXPIRY_TIME = "1d" | ||
REFRESH_TOKEN_SECRET = "360c3a51d4cb6b57a6f899996a59ebaa0a97aa15cb00462f4c5d4e76195ac01c80f78c2887c39fc8c8fd4035ba8214634c713cddcf07de957d37d094f30ada70855caee0d5484ecddad57ed1e4361ebb55c9d568f357aaece7cdbe207f50191fb711eda1cb17997371fb80706a282c17ebf7b8bab2e84642869640797bb7bd2d" | ||
REFRESH_TOKEN_SECRET = "YourRefreshTokenSecretKey" | ||
REFRESH_TOKEN_EXPIRY_TIME = "7d" | ||
REQUIRE_ACTIVATION = false | ||
RATE_LIMIT_PER_HOUR = 500 | ||
GITHUB_OAUTH_CLIENT_ID = "Iv1.6f4b4b8b0b1b4b8b" | ||
GITHUB_OAUTH_CLIENT_SECRET = "6f4b4b8b0b1b4b8b6f4b4b8b0b1b4b8b" | ||
GITHUB_OAUTH_REDIRECT_URL = "http://localhost:3000/auth/github/callback" | ||
OAUTH_CLIENT_ID_GITHUB = "Iv1.6f4b4b8b0b1b4b8b" | ||
OAUTH_CLIENT_SECRET_GITHUB = "6f4b4b8b0b1b4b8b6f4b4b8b0b1b4b8b" | ||
OAUTH_REDIRECT_URL_GITHUB = "http://localhost:3000/auth/github/callback" |
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
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
{ | ||
"extension": ["ts"], | ||
"spec": ["tests/**/*.spec.ts", "tests/**/*.spec.js"], | ||
"require": "tsconfig-paths/register", | ||
"file": ["tests/env.test.ts"] | ||
} |
Empty file.
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.