Skip to content

Commit

Permalink
add launch.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mariovyord committed Dec 13, 2023
1 parent f3bfeaa commit 8bc88c3
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 9 deletions.
30 changes: 24 additions & 6 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
node_modules
npm-debug.log
build
.git
*.md
.gitignore
**/.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
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
]
}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
docker compose -f $(DEV_COMPOSE_FILE) -f $(TEST_COMPOSE_FILE) run --build app
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion src/features/user/user-handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export function signIn() {
userData.username,
userData.password
);
debugger;

return res.cookie(authCookieName, token, authCookieOptions).json({
code: HttpStatusCode.OK,
Expand Down

0 comments on commit 8bc88c3

Please sign in to comment.