diff --git a/.dockerignore b/.dockerignore index 26e4cb4..6d68aea 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,24 @@ -node_modules -npm-debug.log -build -.git -*.md -.gitignore \ No newline at end of file +**/.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 diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..51e30ab --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + "configurations": [ + { + "name": "Docker Node.js Launch", + "type": "docker", + "request": "launch", + "preLaunchTask": "docker-run: debug", + "platform": "node", + "node": { + "port": 9229, + "localRoot": ".", + "remoteRoot": "/usr/src/app" + } + } + ] +} diff --git a/Makefile b/Makefile index 5294435..57381a2 100644 --- a/Makefile +++ b/Makefile @@ -29,4 +29,4 @@ compose-down: .PHONY: run-tests run-tests: - docker compose -f $(DEV_COMPOSE_FILE) -f $(TEST_COMPOSE_FILE) run --build api-node \ No newline at end of file + docker compose -f $(DEV_COMPOSE_FILE) -f $(TEST_COMPOSE_FILE) run --build app \ No newline at end of file diff --git a/package.json b/package.json index e06b307..084876d 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "nodemon src/index.ts", "debug": "nodemon --inspect src/index.ts", - "debug-docker": "nodemon --inspect=0.0.0.0:9229 src/index.ts", + "debug-docker": "nodemon --exec 'node --inspect=0.0.0.0:9229 --require ts-node/register src/index.ts'", "build": "tsc", "start": "node dist/index.js", "lint": "eslint . --ext .ts", diff --git a/src/features/user/user-handlers.ts b/src/features/user/user-handlers.ts index ee6d4b9..97d090f 100644 --- a/src/features/user/user-handlers.ts +++ b/src/features/user/user-handlers.ts @@ -48,7 +48,6 @@ export function signIn() { userData.username, userData.password ); - debugger; return res.cookie(authCookieName, token, authCookieOptions).json({ code: HttpStatusCode.OK,