Home

Social Media Dashboard API Server

A comprehensive Node.js/Express.js API server for managing social media analytics and integrations.

Features

  • JWT Authentication - Secure user authentication with access and refresh tokens
  • OAuth Integration - Support for Instagram, TikTok, YouTube, Facebook, and Snapchat
  • Rate Limiting - Built-in protection against abuse
  • Security Middleware - Helmet.js for security headers
  • CORS Support - Configurable cross-origin resource sharing
  • API Documentation - Auto-generated Swagger/OpenAPI documentation

Quick Start

# Install dependencies
npm install

# Set up environment variables
cp env.example .env

# Start development server
npm run dev

# Generate API documentation
npm run docs

API Endpoints

Authentication

  • POST /auth/register - User registration
  • POST /auth/login - User login
  • POST /auth/refresh - Refresh access token

Social Media

  • GET /social/accounts - List connected accounts
  • GET /social/data/:platform - Get platform data
  • POST /social/connect/:platform - Connect social account

Users

  • GET /users/profile - Get user profile
  • PUT /users/profile - Update user profile

Documentation

Run npm run docs to generate comprehensive API documentation from JSDoc comments.

Environment Variables

See env.example for required environment variables.

License

MIT