diff --git a/.env.example b/.env.example index 6c88239..26baf7c 100644 --- a/.env.example +++ b/.env.example @@ -43,3 +43,6 @@ DB_CPU_LIMIT=0.50 DB_MEMORY_LIMIT=512M DB_CPU_RESERVATION=0.25 DB_MEMORY_RESERVATION=256M + +# JWT Config +JWT_SECRET=sua_chave_ultra_secreta_omninexus_2026 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a82fac..1c97cef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,3 +44,4 @@ jobs: RATE_LIMIT_MAX: 100 RATE_LIMIT_WINDOW: 1 minute RATE_LIMIT_SKIP_PATHS: "[]" + DATABASE_URL: "postgresql://postgres:password@localhost:5432/omnix?schema=public" diff --git a/.vscode/settings.json b/.vscode/settings.json index e7afda8..2db0e90 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -25,6 +25,7 @@ "isready", "omni", "omninexus", + "omnix", "oxlint", "Oxlint", "pgadmin", diff --git a/bun.lock b/bun.lock index 3f73e89..cdc97e9 100644 --- a/bun.lock +++ b/bun.lock @@ -261,7 +261,7 @@ "@scalar/core": ["@scalar/core@0.4.5", "", { "dependencies": { "@scalar/types": "0.7.5" } }, "sha512-W+GN4oInzUWJzS2uwTQpRWl4uCOcnyXyu2zS05jApWUO5Pn7VSh9JSlqDz0nKVMaizWyjblJqocirlGo71pDPA=="], - "@scalar/fastify-api-reference": ["@scalar/fastify-api-reference@1.49.5", "", { "dependencies": { "@scalar/core": "0.4.5", "@scalar/openapi-parser": "0.25.6", "@scalar/openapi-types": "0.6.1", "fastify-plugin": "^4.5.1", "github-slugger": "2.0.0" } }, "sha512-ujYwxVBz23DqCi4phOkPYli6c2kSiqwhAxp6Hm6vycZdE0RWNMBhJc8PR+lligXc9ikHxbQozcQImtkn3M5htQ=="], + "@scalar/fastify-api-reference": ["@scalar/fastify-api-reference@1.49.6", "", { "dependencies": { "@scalar/core": "0.4.5", "@scalar/openapi-parser": "0.25.6", "@scalar/openapi-types": "0.6.1", "fastify-plugin": "^4.5.1", "github-slugger": "2.0.0" } }, "sha512-xL7jqFjHp19oDCvA2bFPt7tdElbEs3/g3U5zANXX2QTzIWJenGIjotq+73j8UoSX5BSUsqChT1qBdfp3RJ3klg=="], "@scalar/helpers": ["@scalar/helpers@0.4.2", "", {}, "sha512-IrgrGVSahCfYDNWITazz4Q1BOndp5eEzlimRkfxiYn++KqeWyLfALyym1omqcdKGYtiSx1KIbKaUJL9vkjaN7w=="], diff --git a/package.json b/package.json index 4b6e813..4c8bfb8 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,8 @@ "db:generate": "drizzle-kit generate", "db:migrate": "drizzle-kit migrate", "db:push": "drizzle-kit push", - "db:studio": "drizzle-kit studio" + "db:studio": "drizzle-kit studio", + "deploy": "bun run db:migrate && bun run start" }, "devDependencies": { "@biomejs/biome": "2.4.7", @@ -76,7 +77,7 @@ "@fastify/cors": "^11.2.0", "@fastify/rate-limit": "^10.3.0", "@fastify/swagger": "^9.7.0", - "@scalar/fastify-api-reference": "^1.49.5", + "@scalar/fastify-api-reference": "^1.49.6", "bcrypt": "^6.0.0", "drizzle-orm": "^0.45.2", "fastify": "^5.8.4",