This project is a simple web server built using Node.js and Express that leverages Google's Generative AI to generate content based on user prompts. The server accepts prompts through a REST API and returns AI-generated content.
- Content Generation: Generate content using Google's Generative AI.
- CORS Support: Allows cross-origin requests from specific origins.
- Express Server: A lightweight and fast server using Express.
- Environment Variables: API keys and other sensitive data are stored in environment variables for security.
Before you begin, ensure you have met the following requirements:
- Node.js (v14.x or later)
- npm (v6.x or later)
- A Google API key for accessing Generative AI.
-
Clone the repository:
git clone https://github.com/yourusername/ai-content-generator.git cd ai-content-generator