Skip to content

klavay/Prehistoric-Flipping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prehistoric-Flipping

An interactive dinosaur gallery web application with AI-powered image generation. Built with FastAPI, modern UI, and OpenAI's image generation capabilities.

Features

  • 🦖 Comprehensive dinosaur information database
  • 🎨 AI-powered image generation for dinosaurs
  • 📱 Responsive, modern UI with Tailwind CSS
  • 🔍 Filter dinosaurs by diet and type
  • 📚 Detailed biographies and fun facts
  • 🖼️ Interactive image gallery
  • 🔄 Real-time updates without page reload

Technologies

  • Backend: FastAPI, Python 3.12
  • Frontend: HTML5, Tailwind CSS, JavaScript
  • Image Generation: OpenAI API
  • Template Engine: Jinja2

Getting Started

  1. Clone the repository:
git clone https://github.com/klavay/Prehistoric-Flipping.git
cd Prehistoric-Flipping
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up your OpenAI API key:
export AI_API_KEY='your-api-key-here'
  1. Run the application:
cd app
uvicorn main:app --host 0.0.0.0 --port 8000 --reload
  1. Visit http://localhost:8000 in your browser

Features

Dinosaur Categories

  • View dinosaurs by diet (Carnivore, Herbivore, Piscivore)
  • Filter by type (Theropod, Sauropod, Ceratopsian, etc.)
  • Detailed information including period, size, habitat, and features

Interactive Gallery

  • View and generate AI-created images for each dinosaur
  • Toggle between fossil and appearance views
  • Responsive image grid with hover effects

Biography Panel

  • Access detailed biographical information
  • Scientific facts and recent discoveries
  • Habitat and behavior information

API Endpoints

  • GET /api/categories - Get all dinosaur categories
  • GET /api/dinosaurs/{category_type}/{category} - Get dinosaurs by category
  • GET /api/images - Get all dinosaur images
  • GET /api/images/{category} - Get images for specific dinosaur
  • POST /api/generate-images/{category} - Generate new images for a dinosaur

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors