Automated article generation and Facebook page posting system with admin panel.
This project automates the creation and posting of articles on a Facebook page using OpenAI's GPT-4 and Facebook Graph API. It features:
- Backend worker service written in Node.js and TypeScript
- Scheduled posting every configurable interval (default every 4 hours)
- Manual post triggering via protected REST API
- Post history retrieval via API
- Frontend admin panel built with Angular to monitor posts and trigger manual posts
- Robust retry mechanisms with exponential backoff
- Structured logging with Winston
- Secure API key management with environment variables
- Dockerfile for containerized deployment
- AI-generated articles on predefined or configurable topics
- Automatic posting to Facebook pages
- Manual trigger endpoint with admin authentication
- Admin frontend to view post history and trigger posts
- Cron-based scheduling with configurable intervals
- Full error handling and logging
- Node.js v18 or higher (backend)
- npm (Node Package Manager)
- Angular CLI (for frontend development)
- Facebook Page with valid access tokens and permissions
- OpenAI API key with access to GPT-4 or compatible model
- Docker (optional, for containerization)
- Navigate to backend directory: