Skip to content

Commit

Permalink
Revert "Added shopping list"
Browse files Browse the repository at this point in the history
This reverts commit 102e0bd.
  • Loading branch information
BasileusErwin committed Jun 30, 2023
1 parent 3948a8f commit 28ea831
Show file tree
Hide file tree
Showing 29 changed files with 5,071 additions and 784 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ dist

.postgres
.redis
.mongo

coverage
2 changes: 1 addition & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
expenses:
image: node:18-alpine
build: .
command: sh -c "yarn install && yarn test"
container_name: expenses-test
depends_on:
Expand Down
15 changes: 1 addition & 14 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,8 @@ services:
ports:
- 5432:5432

mongo:
image: mongo:7.0-rc
restart: unless-stopped
container_name: expenses-mongo
ports:
- 27017:27017
volumes:
- ./.mongo:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=mongo
- MONGO_INITDB_ROOT_PASSWORD=mongo

expenses:
image: node:18-alpine
build: .
container_name: expenses-backend
working_dir: /app
env_file: ./.env
Expand All @@ -46,5 +34,4 @@ services:
depends_on:
- postgres
- redis
- mongo
command: sh -c "yarn install && yarn dev"
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "rm -rf dist/ && tsc",
"dev": "nodemon",
"start": "NODE_PATH=dist/src/ node dist/src/server.js",
"test": "env $(cat .env.test | grep -v '#' | xargs) ENV=test jest --verbose --colors --coverage --detectOpenHandles --forceExit --runInBand",
"test": "env $(cat .env.test | grep -v '#' | xargs) ENV=test jest --verbose --colors --coverage --detectOpenHandles --forceExit --runInBand",
"lint": "yarn rome check {src/,test/}/**/*.ts",
"format": "yarn rome format --write --config-path=. {src/,test/}**/*.ts"
},
Expand All @@ -23,15 +23,13 @@
"@types/http-status-codes": "^1.2.0",
"@types/jest": "^29.4.0",
"@types/jws": "^3.2.5",
"@types/mongoose": "^5.11.97",
"@types/morgan": "^1.9.4",
"@types/node": "^18.14.1",
"@types/pg": "^8.6.6",
"@types/pino": "^7.0.5",
"@types/redis": "^4.0.11",
"@types/reflect-metadata": "^0.1.0",
"@types/supertest": "^2.0.12",
"@types/uuid": "^9.0.1",
"class-transformer": "^0.5.1",
"jest": "^29.4.3",
"nodemon": "^2.0.20",
Expand All @@ -58,7 +56,6 @@
"husky": "^8.0.3",
"inversify": "^6.0.1",
"jws": "^4.0.0",
"mongoose": "^7.2.2",
"morgan": "^1.10.0",
"pg": "^8.9.0",
"pg-hstore": "^2.3.4",
Expand All @@ -73,7 +70,6 @@
"sequelize-typescript": "^2.1.5",
"supertest": "^6.3.3",
"tslint": "^6.1.3",
"umzug": "^3.2.1",
"uuid": "^9.0.0"
"umzug": "^3.2.1"
}
}
Loading

0 comments on commit 28ea831

Please sign in to comment.