Add development + debugging docker configs
This commit is contained in:
@ -1,7 +1,12 @@
|
||||
DATABASE_URL=postgres://postgres:foobarbaz@localhost:5432/postgres
|
||||
|
||||
.PHONY: run-local
|
||||
run-local:
|
||||
DATABASE_URL=postgres://postgres:foobarbaz@localhost:5432/postgres \
|
||||
node ./src/index.js
|
||||
DATABASE_URL=${DATABASE_URL} npm run dev
|
||||
|
||||
.PHONY: run-local-debug
|
||||
run-local-debug:
|
||||
DATABASE_URL=${DATABASE_URL} npm run debug
|
||||
|
||||
.PHONY: build-naive
|
||||
build-naive:
|
||||
|
||||
3383
05-example-web-application/api-node/package-lock.json
generated
3383
05-example-web-application/api-node/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -5,7 +5,9 @@
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
"dev": "nodemon src/index.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"debug": "nodemon --inspect ./src/index.js",
|
||||
"debug-docker": "nodemon --inspect=0.0.0.0:9229 ./src/index.js",
|
||||
"test": "jest"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
@ -15,6 +17,7 @@
|
||||
"pg": "^8.8.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest": "^29.4.1",
|
||||
"nodemon": "^2.0.20"
|
||||
}
|
||||
}
|
||||
|
||||
3
05-example-web-application/api-node/test/example.test.js
Normal file
3
05-example-web-application/api-node/test/example.test.js
Normal file
@ -0,0 +1,3 @@
|
||||
test('This is a test that always passes', () => {
|
||||
expect(true).toBe(true);
|
||||
});
|
||||
Reference in New Issue
Block a user