Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ DOCKER_GID=999
AI_USERNAME=postgres_ai
AI_DB_PASSWORD=dinhanst2832004
AI_DATABASE=ai_db
POST_USERNAME=postgres_post
POST_DB_PASSWORD=dinhanst2832004
POST_DATABASE=post_db
#Redis
REDIS_PASSWORD=dinhanst2832004
#Neo4j
Expand Down
12 changes: 12 additions & 0 deletions .idea/compiler.xml

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

2 changes: 2 additions & 0 deletions .idea/encodings.xml

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

9 changes: 9 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"ExpandedNodes": [
"",
"\\FileService",
"\\FileService\\FileService.Api"
],
"SelectedNode": "\\FileService\\FileService.sln",
"PreviewInSolutionExplorer": false
}
Binary file not shown.
Binary file not shown.
Binary file added .vs/backend/v17/.wsuo
Binary file not shown.
37 changes: 37 additions & 0 deletions .vs/backend/v17/DocumentLayout.backup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"Version": 1,
"WorkspaceRootPath": "D:\\CNTT\\Capstone Project\\backend\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\CNTT\\Capstone Project\\backend\\FileService\\FileService.Api\\Program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:FileService\\FileService.Api\\Program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"Children": [
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Program.cs",
"DocumentMoniker": "D:\\CNTT\\Capstone Project\\backend\\FileService\\FileService.Api\\Program.cs",
"RelativeDocumentMoniker": "FileService\\FileService.Api\\Program.cs",
"ToolTip": "D:\\CNTT\\Capstone Project\\backend\\FileService\\FileService.Api\\Program.cs",
"RelativeToolTip": "FileService\\FileService.Api\\Program.cs",
"ViewState": "AgIAAAkAAAAAAAAAAAAAABMAAAAoAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-12T20:18:19.009Z",
"EditorCaption": ""
}
]
}
]
}
]
}
37 changes: 37 additions & 0 deletions .vs/backend/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"Version": 1,
"WorkspaceRootPath": "D:\\CNTT\\Capstone Project\\backend\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|D:\\CNTT\\Capstone Project\\backend\\FileService\\FileService.Api\\Program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|solutionrelative:FileService\\FileService.Api\\Program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"Children": [
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "Program.cs",
"DocumentMoniker": "D:\\CNTT\\Capstone Project\\backend\\FileService\\FileService.Api\\Program.cs",
"RelativeDocumentMoniker": "FileService\\FileService.Api\\Program.cs",
"ToolTip": "D:\\CNTT\\Capstone Project\\backend\\FileService\\FileService.Api\\Program.cs",
"RelativeToolTip": "FileService\\FileService.Api\\Program.cs",
"ViewState": "AgIAAAkAAAAAAAAAAAAAABMAAAAoAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-12T20:18:19.009Z",
"EditorCaption": ""
}
]
}
]
}
]
}
Binary file added .vs/backend/v17/workspaceFileList.bin
Binary file not shown.
Binary file added .vs/slnx.sqlite
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public enum ErrorCode {
USER_ALREADY_EXISTS(4098101, CONFLICT_STATUS, "Người dùng đã tồn tại!",
CONFLICT),

// 410

;

private final int code;
Expand Down
20 changes: 20 additions & 0 deletions docker-compose.prod-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,26 @@ services:
retries: 5
networks: [ backend ]

post-db:
image: bitnami/postgresql:latest
container_name: post-db
restart: unless-stopped
environment:
- POSTGRESQL_USERNAME=${POST_USERNAME}
- POSTGRESQL_PASSWORD=${POST_DB_PASSWORD}
- POSTGRESQL_DATABASE=${POST_DATABASE}
- POSTGRESQL_POSTGRES_PASSWORD=${POST_DB_PASSWORD}
ports:
- "5439:5432"
# volumes:
# - post_pg_data:/bitnami/postgresql
healthcheck:
test: [ "CMD-SHELL","pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
networks: [ backend ]

quiz-db:
image: bitnami/postgresql:latest
container_name: quiz-db
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<module>search-service</module>
<module>ai-service</module>
<module>chat-service</module>
<module>post-service</module>
</modules>

<properties>
Expand Down
2 changes: 2 additions & 0 deletions post-service/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/mvnw text eol=lf
*.cmd text eol=crlf
33 changes: 33 additions & 0 deletions post-service/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
HELP.md
target/
.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/
19 changes: 19 additions & 0 deletions post-service/.mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
wrapperVersion=3.3.2
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip
Loading