An interactive crime investigation simulator where users solve fictional cases by analyzing clues, connecting evidence, and making deductions.
CrimeFiles is a detective-style simulator built for hackathons and interactive learning experiences. Players investigate crime scenes, review evidence, connect clues, and progress through mystery cases in an engaging interface.
The project focuses on creating an immersive experience using modern frontend technologies, animations, and drag-and-drop interactions.
The repository is built with a fast React + Vite setup and uses Supabase for backend-related functionality. :contentReference[oaicite:0]{index=0}
- Interactive detective gameplay
- Crime case investigation flow
- Evidence and clue analysis
- Drag-and-drop clue management
- Smooth animations and transitions
- Responsive design for desktop and mobile
- State management with Zustand
- Backend integration with Supabase
- Clean and modern UI built with Tailwind CSS
- React
- Vite
- Tailwind CSS
- Framer Motion
- Lucide React Icons
- Zustand
- Supabase
- @hello-pangea/dnd for drag-and-drop functionality
The project uses React, Vite, Tailwind CSS, Zustand, Supabase, Framer Motion, and drag-and-drop support through @hello-pangea/dnd. :contentReference[oaicite:1]{index=1}
CrimeFiles/
├── public/
├── src/
├── .env.example
├── index.html
├── package.json
├── tailwind.config.js
├── vite.config.js
└── README.md
## Installation
1. Clone the repository
```bash
git clone https://github.com/parthbadgire-code/ClueConnect-CrimeSimulator.git- Navigate to the project directory
cd ClueConnect-CrimeSimulator- Install dependencies
npm install- Create an environment file
cp .env.example .env- Add your Supabase credentials to the
.envfile
VITE_SUPABASE_URL=your_supabase_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key- Start the development server
npm run dev- Open the app in your browser
http://localhost:5173
npm run dev # Start development server
npm run build # Build for production
npm run preview # Preview production build locally
npm run lint # Run ESLintTo create a production build:
npm run buildTo preview the production build locally:
npm run previewCreate a .env file in the root directory and add:
VITE_SUPABASE_URL=your_supabase_url
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key- Multiple crime cases
- Difficulty levels
- Save game progress
- User authentication
- Leaderboards
- Multiplayer detective mode
- AI-generated crime stories
- Achievement system
- Fork the repository
- Create a new branch
git checkout -b feature/your-feature-name- Make your changes
- Commit your changes
git commit -m "Add your feature"- Push the branch
git push origin feature/your-feature-name- Open a Pull Request
This project is licensed under the MIT License.
Built by Parth Badgire and contributors.