Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Article Worker

Automated article generation and Facebook page posting system with admin panel.


Project Description

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

Features

  • 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

Prerequisites

  • 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)

Backend Setup

  1. Navigate to backend directory:

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages