This repository has been archived by the owner on Nov 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Technical feature/NR-50 setup mongodb cloud instance (#155)
* extracted config to package * updated gitignore * added dotenv * added fatal log * updated db init * updated logger # switched to class entirely * switched to config # switched to debug logs * updated gitignore * updated gitignore * added db directory * updated env var * fixed password bug * fixed logger bug * added local db init * updated gitignore * added url debug log * added start and stop scripts # start using local db # start using cloud db * extracted config to env vars * fixed failing unit tests * fixed int test bugs * simplified setup * update params * fixed container issues # added env vars to docker compose file # added webserver listen ip # fixed typo in config * updated docu * updated dockerignore * added rootless mode * added debug version # compose file # npm script # launch configuration * renamed launch configurations * added build option * added debug configuration # added launch config # added tasks: start in debug mode, stop * updated debug config * removed build script * added tasks * updated docu # added debugging # updated run
- Loading branch information
1 parent
2ec8afb
commit 356b185
Showing
26 changed files
with
510 additions
and
210 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
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,107 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"name": "steam-game-stats", | ||
"path": "../" | ||
}, | ||
{ | ||
"name": "db", | ||
"path": "../db" | ||
}, | ||
{ | ||
"name": "backend", | ||
"path": "../backend" | ||
}, | ||
{ | ||
"name": "frontend", | ||
"path": "../frontend" | ||
}, | ||
], | ||
"settings": { | ||
"files.exclude": { | ||
"node_modules/": false, | ||
"db/": true, | ||
"backend/": true, | ||
"frontend/": true | ||
} | ||
}, | ||
"launch": { | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Docker: attach and debug backend", | ||
"type": "node", | ||
"request": "attach", | ||
"remoteRoot": "/app/steam-game-stats/backend", | ||
"localRoot": "${workspaceFolder}/backend", | ||
"port": 9229, | ||
"address": "localhost", | ||
"preLaunchTask": "Docker: start backend in debug with local-db", | ||
"postDebugTask": "Docker: stop" | ||
}, | ||
], | ||
}, | ||
"tasks": { | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Docker: start backend in debug with local-db", | ||
"type": "docker-compose", | ||
"dockerCompose": { | ||
"up": { | ||
"detached": true, | ||
"build": true, | ||
}, | ||
"files": [ | ||
"${workspaceFolder}/docker-compose.yaml", | ||
"${workspaceFolder}/docker-compose.debug.yaml" | ||
], | ||
"envFile": "${workspaceFolder}/config/local-db.env", | ||
}, | ||
"problemMatcher": { | ||
"base": "$tsc-watch", | ||
"background": { | ||
"activeOnStart": true, | ||
"beginsPattern": "Building", | ||
"endsPattern": "Debugger listening on" | ||
} | ||
} | ||
}, | ||
{ | ||
"label": "Docker: start backend with local-db", | ||
"type": "docker-compose", | ||
"dockerCompose": { | ||
"up": { | ||
"detached": true, | ||
"build": true, | ||
}, | ||
"files": [ | ||
"${workspaceFolder}/docker-compose.yaml", | ||
], | ||
"envFile": "${workspaceFolder}/config/local-db.env", | ||
} | ||
}, | ||
{ | ||
"label": "Docker: start backend with cloud-db", | ||
"type": "docker-compose", | ||
"dockerCompose": { | ||
"up": { | ||
"detached": true, | ||
"build": true, | ||
}, | ||
"files": [ | ||
"${workspaceFolder}/docker-compose.yaml", | ||
], | ||
"envFile": "${workspaceFolder}/config/cloud-db.env", | ||
} | ||
}, | ||
{ | ||
"label": "Docker: stop", | ||
"type": "docker-compose", | ||
"dockerCompose": { | ||
"down": {}, | ||
} | ||
} | ||
] | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,24 @@ | ||
node_modules | ||
.git | ||
.gitignore | ||
.github | ||
.vscode | ||
.DS_Store | ||
**/.classpath | ||
**/.dockerignore | ||
**/.env | ||
**/.git | ||
**/.gitignore | ||
**/.project | ||
**/.settings | ||
**/.toolstarget | ||
**/.vs | ||
**/.vscode | ||
**/*.*proj.user | ||
**/*.dbmdl | ||
**/*.jfm | ||
**/charts | ||
**/docker-compose* | ||
**/compose* | ||
**/Dockerfile* | ||
**/node_modules | ||
**/npm-debug.log | ||
**/obj | ||
**/secrets.dev.yaml | ||
**/values.dev.yaml | ||
LICENSE | ||
README.md |
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.