Skip to content

TejaBudumuru3/post-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

245 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Post Generator

A full-stack web application that generates AI-powered social media content (X / LinkedIn / Image prompts). Includes an Express + MongoDB backend and two React frontends (classic Frontend and a TypeScript/Vite "new-fe").


Quick summary


Prerequisites

  • Node.js >= 18
  • npm (or yarn)
  • MongoDB (local or cloud)
  • For new-fe: pnpm / npm (Vite + TypeScript)

Environment

Backend expects environment variables (or local files):

Recommendation:

  • Create .env (or platform environment) entries:
    • BACKEND: MONGO_URI, PORT, JWT_SECRET, JWT_SECRET_ADMIN
    • FRONTEND / new-fe: VITE_BACKEND_URL, VITE_LINKEDIN_URL

Install & Run

  1. Root (optional)

    • npm install
  2. Backend

  3. Frontend (classic)

  4. Frontend (new-fe - TypeScript / Vite)


API Endpoints (overview)

Most endpoints are defined in backend/Routers/user.js. Common endpoints used by frontends:

See implementation: backend/Routers/user.js and backend/Routers/Linkedin.js.


Frontend notes


Security & Notes

  • JWT secrets are in backend/config.js — rotate & move to environment variables in production.
  • The backend code contains elaborate system prompts for an AI model (review for policy and safety before production usage). See backend/Routers/user.js and backend/Routers/Linkedin.js.
  • Ensure CORS and cookie settings match frontends (credentials:true used in fetch calls).

Troubleshooting


Contributing


Useful files & entry points


License & Authors

  • Authors: TejaBudumuru3, Vamsidarling (see repo metadata)
  • License: (specify your license file if present)

Releases

Packages

Used by

Contributors

Languages