Skip to content
Open
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
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
36 changes: 14 additions & 22 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
version: "3.8"

services:
mongo:
image: mongo:6.0.4-focal
container_name: crowbar-mongo
crowbar-db:
image: postgres:16-alpine
container_name: crowbar-db
restart: unless-stopped
environment:
MONGO_INITDB_DATABASE: "crowbar"
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: crowbartools
POSTGRES_USER: crowbar
POSTGRES_PASSWORD: crowbar
POSTGRES_DB: crowbar
ports:
- 127.0.0.1:27017-27019:27017-27019
- 127.0.0.1:5433:5432
volumes:
- cbDbData:/data/db
- cbDbConfig:/data/configdb
mongo-express:
image: mongo-express
restart: unless-stopped
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: admin
ME_CONFIG_MONGODB_ADMINPASSWORD: crowbartools
ME_CONFIG_MONGODB_URL: mongodb://admin:crowbartools@mongo:27017/
- crowbarDbData:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U crowbar -d crowbar"]
interval: 10s
timeout: 5s
retries: 5

volumes:
cbDbData:
cbDbConfig:
crowbarDbData:
183 changes: 155 additions & 28 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"helmet": "^8.1.0",
"keyv": "^5.5.0",
"node-gzip": "^1.1.2",
"pg": "^8.22.0",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.2",
"tar-stream": "^3.2.0",
Expand All @@ -49,14 +50,15 @@
"ws": "^8.18.3"
},
"devDependencies": {
"@crowbartools/firebot-types": "^5.67.0-alpha27",
"@crowbartools/firebot-types": "^5.67.0-alpha29",
"@nestjs/cli": "^11.0.10",
"@nestjs/schematics": "^11.0.7",
"@nestjs/testing": "^11.1.6",
"@types/express": "^5.0.3",
"@types/jest": "30.0.0",
"@types/node": "^22.19.21",
"@types/node-gzip": "^1.1.3",
"@types/pg": "^8.20.0",
"@types/supertest": "^6.0.3",
"@types/tar-stream": "^3.1.4",
"@types/ws": "^8.18.1",
Expand Down
18 changes: 18 additions & 0 deletions src/api/controllers/plugins/dtos/firebot-version.dto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
import { IsInt, IsOptional } from "class-validator";

export class FirebotVersionDto {
@ApiProperty()
@IsInt()
major: number;

@ApiPropertyOptional()
@IsOptional()
@IsInt()
minor?: number;

@ApiPropertyOptional()
@IsOptional()
@IsInt()
patch?: number;
}
Loading