Skip to content

mdsajalali/dream-ai-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Text-Based Image Generator Backend

This backend powers an advanced AI-driven image generator, utilizing Node.js, Express, and Mongoose, with Together AI for text-to-image generation and Supabase for secure image storage and management.

Features

  • Secure user authentication and account management
  • AI-powered image generation from text prompts via Together AI
  • User-specific image gallery with organized collections
  • Global image showcase for all generated images
  • Favorite list functionality for easy access to preferred images
  • Reliable image storage and management with Supabase
  • Scalable and efficient database handling with Mongoose
  • Admin dashboard for managing users, images, and roles

Tech Stack

  • Node.js: Fast and scalable JavaScript runtime
  • Express: Lightweight and flexible web framework
  • Mongoose: MongoDB object modeling and query handling
  • Supabase: Secure cloud-based storage and database services
  • Together AI: State-of-the-art AI model for text-to-image generation

💻 Getting Started

  1. Clone the repository:
git clone https://github.com/mdsajalali/dream-ai-server.git
  1. Install dependencies:
cd dream-ai-server
npm install
  1. Set up environment variables:

Create a .env file in the backend and add the following:

TOGETHER_API_KEY=your_together_ai_api_key
TOGETHER_AI_MODEL=black-forest-labs/FLUX.1-schnell-Free
SUPABASE_URL=your_supabase_url
SUPABASE_KEY=your_supabase_key
MONGO_URI=your_mongodb_connection_string
PORT=8080
SECRET_KEY=your_secret_key
  1. Run the development server:
npm run dev

The app will be available at http://localhost:8080 🚀

Check out the Frontend Repository.

Connect with me on LinkedIn.

Happy coding! 🚀

Releases

No releases published

Packages

No packages published