This commit is contained in:
irylkov
2025-03-21 09:40:42 +03:00
commit bbb7597e17
24 changed files with 457 additions and 0 deletions

12
comments/Makefile Normal file
View File

@@ -0,0 +1,12 @@
BINDIR=${CURDIR}/bin
PACKAGE=route256/comments
bindir:
mkdir -p ${BINDIR}
build: bindir
echo "build comments"
run-migrations:
echo "run migrations"

View File

@@ -0,0 +1,20 @@
app:
edit_interval: 1s
service:
host: localhost
grpc_port: 8085
http_port: 8086
db_shards:
- host: "postgres-comments-shard-1"
port: 5432
user: comments-user-1
password: comments-password-1
db_name: comments_db
- host: "postgres-comments-shard-2"
port: 5432
user: comments-user-2
password: comments-password-2
db_name: comments_db

View File

@@ -0,0 +1,20 @@
app:
edit_interval: 1s
service:
host: localhost
grpc_port: 8085
http_port: 8086
db_shards:
- host: localhost
port: 5434
user: comments-user-1
password: comments-password-1
db_name: comments_db
- host: localhost
port: 5435
user: comments-user-2
password: comments-password-2
db_name: comments_db

3
comments/go.mod Normal file
View File

@@ -0,0 +1,3 @@
module route256/comments
go 1.23.1