An interactive dinosaur gallery web application with AI-powered image generation. Built with FastAPI, modern UI, and OpenAI's image generation capabilities.
- 🦖 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
- Backend: FastAPI, Python 3.12
- Frontend: HTML5, Tailwind CSS, JavaScript
- Image Generation: OpenAI API
- Template Engine: Jinja2
- Clone the repository:
git clone https://github.com/klavay/Prehistoric-Flipping.git
cd Prehistoric-Flipping- Install dependencies:
pip install -r requirements.txt- Set up your OpenAI API key:
export AI_API_KEY='your-api-key-here'- Run the application:
cd app
uvicorn main:app --host 0.0.0.0 --port 8000 --reload- Visit
http://localhost:8000in your browser
- View dinosaurs by diet (Carnivore, Herbivore, Piscivore)
- Filter by type (Theropod, Sauropod, Ceratopsian, etc.)
- Detailed information including period, size, habitat, and features
- View and generate AI-created images for each dinosaur
- Toggle between fossil and appearance views
- Responsive image grid with hover effects
- Access detailed biographical information
- Scientific facts and recent discoveries
- Habitat and behavior information
GET /api/categories- Get all dinosaur categoriesGET /api/dinosaurs/{category_type}/{category}- Get dinosaurs by categoryGET /api/images- Get all dinosaur imagesGET /api/images/{category}- Get images for specific dinosaurPOST /api/generate-images/{category}- Generate new images for a dinosaur
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.