Add development + debugging docker configs

This commit is contained in:
sid palas
2023-02-01 16:15:05 -05:00
parent 15a831b04b
commit bb256c8926
21 changed files with 3752 additions and 26 deletions

View File

@ -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:

File diff suppressed because it is too large Load Diff

View File

@ -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"
}
}

View File

@ -0,0 +1,3 @@
test('This is a test that always passes', () => {
expect(true).toBe(true);
});