feat: initial zeropost-engine structure

- AI service with Anthropic claude-sonnet-4-6
- Bull queue for async generation jobs
- Routes: /api/generate, /api/channels, /api/posts
- PostgreSQL schema: users, channels, posts, generation_jobs
- Supports: post, article, topics generation types
This commit is contained in:
Alexey Pavlov
2026-05-30 21:29:00 +03:00
parent 1b9767f269
commit 612053b93d
12 changed files with 1907 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
require('dotenv').config();
module.exports = {
port: process.env.PORT || 3030,
anthropicApiKey: process.env.ANTHROPIC_API_KEY,
db: {
host: process.env.DB_HOST || 'localhost',
port: process.env.DB_PORT || 5432,
database: process.env.DB_NAME || 'zeropost',
user: process.env.DB_USER || 'postgres',
password: process.env.DB_PASS || 'postgres',
},
redis: {
host: process.env.REDIS_HOST || 'localhost',
port: process.env.REDIS_PORT || 6379,
},
internalSecret: process.env.INTERNAL_SECRET || 'dev-secret-change-in-prod',
};