Step into the shoes of a real detective and solve crimes using SQL! SQL Noir is an interactive mystery-solving game where you crack cases by writing SQL queries.
Welcome to SQL Noir, where you're a data detective solving criminal cases through the power of SQL. Each case file presents you with a unique crime scenario and a database full of evidence. Your mission is to:
- Uncover suspicious patterns in the data
- Track down missing records
- Connect the dots between suspects
- Expose fraudulent transactions
- Piece together the evidence using SQL
-
Clone this repository
-
Install dependencies:
npm install
-
Go to Supabase and create a new project
-
Copy the generated
anon public key
andProject URL
from the project -
Create a
.env.local
file at the root of the project and set the following environment variables:VITE_SUPABASE_ANON_KEY=your_anon_key VITE_SUPABASE_URL=your_supabase_url
-
Install Supabase CLI:
- Follow the instructions at Supabase CLI
-
Login to Supabase:
supabase login
-
Link your project ( You need to be in the root of the project to run this command ):
supabase link
- Select the project you just created when prompted
-
Run database migrations:
supabase db push
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:5173
Each case in SQL Noir is a unique crime that needs solving. Cases range from simple thefts to complex murders, organized by difficulty level. Put your SQL skills to the test and climb the ranks from rookie to master detective.
We welcome new detectives! Whether you want to:
- Submit new cases for others to solve
- Improve existing investigations
- Fix bugs in the system
- Enhance the detective interface
- Improve documentation
Check the Contributing Guidelines to join the force and help make SQL Noir even better.