Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/code100x/cms
Browse files Browse the repository at this point in the history
  • Loading branch information
Maawan committed Mar 18, 2024
2 parents 39d2fec + b7d1ca4 commit a046b19
Show file tree
Hide file tree
Showing 33 changed files with 516 additions and 64 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
.pnp.js
.yarn/install-state.gz

# docker volume
/postgres-data/

# testing
/coverage

Expand Down
11 changes: 9 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ services:
- .:/usr/src/app
- /usr/src/app/node_modules
depends_on:
- db
db:
condition: service_healthy

db:
image: postgres:9.6
container_name: db
restart: always
environment:
POSTGRES_USER: postgres
Expand All @@ -23,4 +25,9 @@ services:
ports:
- 5432:5432
volumes:
- /postgres-data:/var/lib/postgresql/data
- ./postgres-data:/var/lib/postgresql/data
healthcheck:
test: [ 'CMD-SHELL', 'pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}' ]
interval: 10s
timeout: 5s
retries: 5
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@auth/prisma-adapter": "^1.0.6",
"@discordjs/core": "^1.1.1",
"@discordjs/next": "^0.1.1-dev.1673526225-a580768.0",
"@icons-pack/react-simple-icons": "^9.4.0",
"@prisma/client": "^5.6.0",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-avatar": "^1.0.4",
Expand Down
104 changes: 98 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ model Comment {
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
votes Vote[]
isPinned Boolean @default(false)
}

model Vote {
Expand All @@ -196,3 +197,4 @@ enum CommentType {
INTRO
DEFAULT
}

Loading

0 comments on commit a046b19

Please sign in to comment.