Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 1c440b3

Browse files
committed
Edit Employee and Channel controllers and services
1 parent 2db5464 commit 1c440b3

15 files changed

+586
-29
lines changed

.env.example

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
API_URL= # URL of this Main API
2-
3-
DATABASE_URL= # PostgreSQL connection URL for Prisma
2+
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/food?schema=public" # PostgreSQL connection URL for Prisma
43

54
JWT_SECRET= # Secret string
65
JWT_EXPIRATION_TIME= # Example, "30d"

docker-compose.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: '3.8'
2+
services:
3+
# nest-api:
4+
# build:
5+
# context: .
6+
# dockerfile: Dockerfile
7+
# container_name: nest-api
8+
# restart: always
9+
# ports:
10+
# - "4001:4001"
11+
# depends_on:
12+
# - postgres
13+
# env_file:
14+
# - .env
15+
16+
postgres:
17+
image: postgres:14
18+
container_name: postgres
19+
restart: unless-stopped
20+
ports:
21+
- "5432:5432"
22+
environment:
23+
POSTGRES_USER: postgres
24+
POSTGRES_PASSWORD: postgres
25+
POSTGRES_DB: food
26+
PGDATA: /data/postgres
27+
volumes:
28+
- postgres:/data/postgres
29+
30+
volumes:
31+
postgres:
32+
name: nest-prisma-docker-db

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@
99
"start:dev": "nest start --watch",
1010
"start:debug": "nest start --debug --watch",
1111
"start:prod": "node dist/main",
12-
"prisma:push": "prisma db push",
1312
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
1413
"lint:types": "tsc --noEmit",
1514
"test": "jest",
1615
"test:watch": "jest --watch",
1716
"test:cov": "jest --coverage",
1817
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
19-
"test:e2e": "jest --config test/jest-e2e.json"
18+
"test:e2e": "jest --config test/jest-e2e.json --detectOpenHandles",
19+
"dev:db": "docker-compose up -d",
20+
"prisma:push": "prisma db push",
21+
"prisma:migrate": "prisma migrate dev"
2022
},
2123
"keywords": [
2224
"ecommerce",
@@ -62,7 +64,7 @@
6264
"@types/jest": "^29.5.11",
6365
"@types/multer": "^1.4.11",
6466
"@types/node": "^20.10.5",
65-
"@types/supertest": "^6.0.0",
67+
"@types/supertest": "^6.0.2",
6668
"@typescript-eslint/eslint-plugin": "^6.15.0",
6769
"@typescript-eslint/parser": "^6.15.0",
6870
"eslint": "^8.56.0",

0 commit comments

Comments
 (0)