Initial commit: Who Did It Clue character preference collector

Made-with: Cursor
This commit is contained in:
2026-03-04 22:00:59 -05:00
commit 9b71099658
27 changed files with 4048 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
node_modules
client/node_modules
server/node_modules
client/dist
.git
.gitignore
.env
.env.local
.env.*.local
Dockerfile
.dockerignore
docker-compose.yml
README.md
LICENSE
*.md
.vscode
.idea
*.log
server/data/submissions.json
+9
View File
@@ -0,0 +1,9 @@
node_modules
client/node_modules
server/node_modules
client/dist
.env
.env.local
server/data/submissions.json
*.log
.DS_Store
+121
View File
@@ -0,0 +1,121 @@
# Docker Setup for Who Did It?
This document describes how to build and deploy the Who Did It? app using Docker.
## Prerequisites
- Docker installed and running
- Access to `docker-registry.kolpacksoftware.com`
- Docker login credentials for the registry
## Quick Start
### Build the Image
**Windows (PowerShell):**
```powershell
.\docker-build.ps1
```
**Linux/Mac:**
```bash
chmod +x docker-build.sh
./docker-build.sh
```
**Manual:**
```bash
docker build -t docker-registry.kolpacksoftware.com/clue-picker:latest .
```
### Push to Registry
**Windows (PowerShell):**
```powershell
.\docker-push.ps1
```
**Linux/Mac:**
```bash
chmod +x docker-push.sh
./docker-push.sh
```
**Manual:**
```bash
docker login docker-registry.kolpacksoftware.com
docker push docker-registry.kolpacksoftware.com/clue-picker:latest
```
### Run the Container
```bash
docker run -d \
-p 3001:3001 \
-e ADMIN_PASSWORD=clue2024 \
-e ALLOWED_NAMES="Jim,Colleen,Rory,Gigi,Meghan,Christine,Bob,Rachel,Chuck" \
-v ./server-data:/app/server/data \
--name clue-picker \
docker-registry.kolpacksoftware.com/clue-picker:latest
```
## Environment Variables
- `PORT` - Server port (default: 3001)
- `ADMIN_PASSWORD` - Password required to clear submissions (default: clue2024)
- `ALLOWED_NAMES` - Comma-separated list of allowed player names
Example:
```bash
docker run -d \
-p 3001:3001 \
-e ADMIN_PASSWORD=your-secret \
-e ALLOWED_NAMES="Alice,Bob,Carol" \
-v ./server-data:/app/server/data \
docker-registry.kolpacksoftware.com/clue-picker:latest
```
## Volume Mount for Persistence
To persist submissions across container restarts, mount the data directory:
```bash
-v ./server-data:/app/server/data
```
## Custom Image Name/Tag
**Windows:**
```powershell
.\docker-build.ps1 -ImageName "who-did-it" -Tag "v1.0.0"
.\docker-push.ps1 -ImageName "who-did-it" -Tag "v1.0.0"
```
**Linux/Mac:**
```bash
IMAGE_NAME="who-did-it" TAG="v1.0.0" ./docker-build.sh
IMAGE_NAME="who-did-it" TAG="v1.0.0" ./docker-push.sh
```
## Docker Compose (Optional)
```yaml
version: '3.8'
services:
web:
image: docker-registry.kolpacksoftware.com/clue-picker:latest
ports:
- "3001:3001"
environment:
- PORT=3001
- ADMIN_PASSWORD=clue2024
- ALLOWED_NAMES=Jim,Colleen,Rory,Gigi,Meghan,Christine,Bob,Rachel,Chuck
volumes:
- ./server-data:/app/server/data
```
Then run:
```bash
docker-compose up
```
+48
View File
@@ -0,0 +1,48 @@
# Multi-stage build for Who Did It? (Node + React)
FROM node:20-slim AS builder
WORKDIR /app
# Copy package files
COPY client/package.json client/package-lock.json* client/
COPY server/package.json server/package-lock.json* server/
# Install dependencies
RUN cd client && (npm ci 2>/dev/null || npm install)
RUN cd server && (npm ci 2>/dev/null || npm install)
# Copy source and build client
COPY client/ client/
COPY server/ server/
RUN cd client && npm run build
# Final stage
FROM node:20-slim
ENV NODE_ENV=production
# Create non-root user (UID 1001 - node image may already use 1000)
RUN useradd -m -u 1001 appuser
WORKDIR /app
# Copy server (includes node_modules from builder)
COPY --from=builder /app/server /app/server
COPY --from=builder /app/client/dist /app/client/dist
# Ensure data directory exists
RUN mkdir -p /app/server/data && chown -R appuser:appuser /app
# Entrypoint script
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN tr -d '\r' < /docker-entrypoint.sh > /docker-entrypoint.sh.tmp && \
mv /docker-entrypoint.sh.tmp /docker-entrypoint.sh && \
chmod +x /docker-entrypoint.sh && \
chown appuser:appuser /docker-entrypoint.sh
USER appuser
EXPOSE 3001
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["node", "index.js"]
+74
View File
@@ -0,0 +1,74 @@
# Who Did It?
A Clue-themed character preference collector for game parties. Players enter their name, rank their top 3 character choices, and an admin view assigns players to characters (with team overflow when needed).
## Tech Stack
- **Frontend:** React (Vite)
- **Backend:** Node.js / Express
- **Persistence:** JSON file (no database)
## Prerequisites
- Node.js 18+
## Setup
### 1. Install dependencies
```bash
cd client
npm install
cd ../server
npm install
```
### 2. Environment
Create `server/.env` (or copy from `server/.env.example`):
```
PORT=3001
ADMIN_PASSWORD=clue2024
ALLOWED_NAMES=Jim,Colleen,Rory,Gigi,Meghan,Christine,Bob,Rachel,Chuck
```
### 3. Run development servers
**Terminal 1 server:**
```bash
cd server
npm run dev
```
**Terminal 2 client:**
```bash
cd client
npm run dev
```
Open http://localhost:5173 (or the URL Vite prints). The client proxies `/api` to the server on port 3001.
## Routes
| Route | Purpose |
|---------|------------------------------------------|
| `/` | Name entry (must be in allowed list) |
| `/rank` | Rank top 3 character choices |
| `/thanks` | Confirmation after submitting picks |
| `/admin` | Results dashboard, Assign Teams, Clear |
## Configuration
- **ALLOWED_NAMES:** Comma-separated list of player names. Only these names can submit picks. Case-insensitive.
- **ADMIN_PASSWORD:** Required to clear all submissions (admin panel).
## Docker
See [DOCKER.md](DOCKER.md) for build, push, and run instructions.
```bash
.\docker-build.ps1
.\docker-push.ps1
```
+14
View File
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Who Did It? — Clue Character Preference</title>
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Crimson+Text:ital@0;1&display=swap" rel="stylesheet">
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
+1756
View File
File diff suppressed because it is too large Load Diff
+22
View File
@@ -0,0 +1,22 @@
{
"name": "who-did-it-client",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.20.0"
},
"devDependencies": {
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react": "^4.2.1",
"vite": "^5.0.8"
}
}
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFBD4F"></stop><stop offset="100%" stop-color="#FF980E"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

+284
View File
@@ -0,0 +1,284 @@
:root {
--cream: #f5efe0;
--ink: #1a1208;
--gold: #c9a84c;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #1a1208;
background-image:
repeating-linear-gradient(45deg, rgba(201,168,76,0.04) 0px, rgba(201,168,76,0.04) 1px, transparent 1px, transparent 10px),
repeating-linear-gradient(-45deg, rgba(201,168,76,0.04) 0px, rgba(201,168,76,0.04) 1px, transparent 1px, transparent 10px);
min-height: 100vh;
font-family: 'Crimson Text', serif;
color: var(--cream);
padding: 40px 20px;
}
.page {
max-width: 1100px;
margin: 0 auto;
min-height: 60vh;
display: flex;
flex-direction: column;
align-items: center;
}
header {
text-align: center;
margin-bottom: 48px;
}
.ornament {
color: var(--gold);
font-size: 1.2rem;
letter-spacing: 0.4em;
text-transform: uppercase;
font-family: 'Crimson Text', serif;
}
h1 {
font-family: 'Playfair Display', serif;
font-size: clamp(2.8rem, 6vw, 4.5rem);
font-weight: 700;
line-height: 1;
color: var(--cream);
margin: 8px 0 4px;
text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.subtitle {
font-style: italic;
font-size: 1.2rem;
color: rgba(245,239,224,0.6);
margin-bottom: 6px;
}
.gold-rule {
width: 120px;
height: 1px;
background: linear-gradient(90deg, transparent, var(--gold), transparent);
margin: 16px auto;
}
.instructions {
font-style: italic;
color: rgba(245,239,224,0.7);
font-size: 1.05rem;
max-width: 480px;
margin: 0 auto;
}
.player-setup {
max-width: 500px;
margin: 0 auto 48px;
background: rgba(245,239,224,0.04);
border: 1px solid rgba(201,168,76,0.25);
border-radius: 2px;
padding: 28px 32px;
}
.player-setup h2 {
font-family: 'Playfair Display', serif;
font-size: 1.3rem;
color: var(--gold);
margin-bottom: 16px;
letter-spacing: 0.05em;
}
.name-row {
display: flex;
gap: 10px;
margin-bottom: 10px;
}
.name-row input {
flex: 1;
background: rgba(245,239,224,0.08);
border: 1px solid rgba(201,168,76,0.3);
border-radius: 2px;
color: var(--cream);
font-family: 'Crimson Text', serif;
font-size: 1.1rem;
padding: 10px 14px;
outline: none;
transition: border-color 0.2s;
}
.name-row input:focus {
border-color: var(--gold);
}
.name-row input::placeholder {
color: rgba(245,239,224,0.3);
}
.btn-primary {
background: transparent;
border: 1px solid rgba(201,168,76,0.5);
color: var(--gold);
font-family: 'Crimson Text', serif;
font-size: 1.1rem;
padding: 12px 28px;
border-radius: 2px;
cursor: pointer;
transition: all 0.2s;
width: 100%;
}
.btn-primary:hover:not(:disabled) {
background: rgba(201,168,76,0.15);
}
.btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.error-msg {
color: #e74c3c;
font-size: 0.95rem;
margin-top: 8px;
}
@keyframes fadeIn {
from { opacity: 0; transform: scale(0.98); }
to { opacity: 1; transform: scale(1); }
}
/* Character cards */
.characters-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 20px;
max-width: 1100px;
margin: 0 auto 40px;
}
.character-card {
border: 2px solid rgba(201,168,76,0.2);
border-radius: 2px;
overflow: hidden;
transition: transform 0.25s, box-shadow 0.25s;
position: relative;
}
.character-card:hover {
transform: translateY(-3px);
box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.character-card.card-ranked {
box-shadow: 0 0 0 2px var(--card-color);
}
.card-header {
padding: 22px 24px 18px;
position: relative;
}
.character-icon {
font-size: 2.5rem;
margin-bottom: 8px;
display: block;
}
.character-name {
font-family: 'Playfair Display', serif;
font-size: 1.5rem;
font-weight: 700;
display: block;
}
.card-body {
background: rgba(26,18,8,0.9);
padding: 16px 24px 20px;
}
.costume-hint {
font-size: 0.95rem;
color: rgba(245,239,224,0.65);
font-style: italic;
margin-bottom: 14px;
line-height: 1.5;
}
.rank-badges {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.rank-badge {
background: transparent;
border: 1px solid rgba(245,239,224,0.3);
color: var(--cream);
font-family: 'Crimson Text', serif;
font-size: 0.9rem;
padding: 6px 12px;
border-radius: 2px;
cursor: pointer;
transition: all 0.2s;
}
.rank-badge:hover {
border-color: var(--gold);
background: rgba(201,168,76,0.1);
}
.rank-badge.selected {
border-color: var(--gold);
background: rgba(201,168,76,0.2);
color: var(--gold);
}
footer {
text-align: center;
color: rgba(245,239,224,0.25);
font-style: italic;
font-size: 0.95rem;
padding: 40px 20px 20px;
}
a {
color: var(--gold);
}
/* Mobile */
@media (max-width: 600px) {
body {
padding: 20px 12px;
}
.characters-grid {
grid-template-columns: 1fr;
gap: 16px;
}
.ornament {
font-size: 1rem;
letter-spacing: 0.2em;
}
h1 {
font-size: clamp(2rem, 8vw, 3rem);
}
.player-setup {
padding: 20px 20px;
}
.rank-badges {
flex-direction: column;
}
.rank-badge {
width: 100%;
}
}
+16
View File
@@ -0,0 +1,16 @@
import { Routes, Route } from 'react-router-dom'
import NameEntry from './pages/NameEntry'
import Ranking from './pages/Ranking'
import Thanks from './pages/Thanks'
import Admin from './pages/Admin'
export default function App() {
return (
<Routes>
<Route path="/" element={<NameEntry />} />
<Route path="/rank" element={<Ranking />} />
<Route path="/thanks" element={<Thanks />} />
<Route path="/admin" element={<Admin />} />
</Routes>
)
}
+13
View File
@@ -0,0 +1,13 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import { BrowserRouter } from 'react-router-dom'
import App from './App.jsx'
import './App.css'
ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
<BrowserRouter>
<App />
</BrowserRouter>
</React.StrictMode>,
)
+260
View File
@@ -0,0 +1,260 @@
import { useState, useEffect } from 'react'
import { Link } from 'react-router-dom'
function assignTeams(submissions, characters) {
const charMap = Object.fromEntries(characters.map(c => [c.id, { ...c, players: [] }]))
const assignments = { ...charMap }
const firstPicks = {}
for (const c of characters) firstPicks[c.id] = []
for (const sub of submissions) {
const c1 = sub.picks[0]
if (c1) firstPicks[c1].push(sub.name)
}
// Step 1: Assign 1st choices (one per character, random on ties)
const assigned = new Set()
for (const c of characters) {
const picks = firstPicks[c.id]
if (picks.length === 1) {
assignments[c.id].players.push(picks[0])
assigned.add(picks[0])
} else if (picks.length > 1) {
const chosen = picks[Math.floor(Math.random() * picks.length)]
assignments[c.id].players.push(chosen)
assigned.add(chosen)
}
}
// Unassigned: all who didn't get 1st, with full picks
const unassigned = submissions
.filter(s => !assigned.has(s.name))
.map(s => ({ name: s.name, picks: s.picks }))
// Step 2: Try 2nd, then 3rd (teams allowed)
const stillUnassigned = []
for (const u of unassigned) {
const [c1, c2, c3] = u.picks
const fallbacks = [c2, c3].filter(Boolean)
let placed = false
for (const cid of fallbacks) {
if (assignments[cid]) {
assignments[cid].players.push(u.name)
placed = true
break
}
}
if (!placed) stillUnassigned.push(u)
}
// Step 3: Overflow -> least-filled character
for (const u of stillUnassigned) {
const least = characters.reduce((acc, c) =>
assignments[c.id].players.length < assignments[acc.id].players.length ? c : acc
)
assignments[least.id].players.push(u.name)
}
return assignments
}
const ADMIN_KEY = 'whoDidItAdminUnlocked'
export default function Admin() {
const [unlocked, setUnlocked] = useState(() => sessionStorage.getItem(ADMIN_KEY) === '1')
const [password, setPassword] = useState('')
const [passwordError, setPasswordError] = useState('')
const [submissions, setSubmissions] = useState([])
const [characters, setCharacters] = useState([])
const [assignments, setAssignments] = useState(null)
const [loading, setLoading] = useState(true)
const handleUnlock = async (e) => {
e.preventDefault()
setPasswordError('')
const res = await fetch('/api/admin/verify', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ password }),
})
const data = await res.json()
if (res.ok && data.ok) {
sessionStorage.setItem(ADMIN_KEY, '1')
setUnlocked(true)
} else {
setPasswordError('Incorrect password')
}
}
const load = () => {
Promise.all([
fetch('/api/submissions').then(r => r.json()),
fetch('/api/characters').then(r => r.json()),
]).then(([subs, chars]) => {
setSubmissions(subs)
setCharacters(chars)
setAssignments(null)
setLoading(false)
})
}
useEffect(() => { if (unlocked) load() }, [unlocked])
const handleAssign = () => {
setAssignments(assignTeams(submissions, characters))
}
const handleClear = async () => {
const password = prompt('Enter admin password')
if (!password) return
const res = await fetch('/api/submissions', {
method: 'DELETE',
headers: {
'X-Admin-Password': password,
},
})
if (res.ok) {
load()
} else {
alert('Incorrect password')
}
}
// Build pick breakdown per character
const pickBreakdown = {}
for (const c of characters) {
pickBreakdown[c.id] = { first: [], second: [], third: [] }
}
for (const sub of submissions) {
const [c1, c2, c3] = sub.picks
if (c1) pickBreakdown[c1].first.push(sub.name)
if (c2) pickBreakdown[c2].second.push(sub.name)
if (c3) pickBreakdown[c3].third.push(sub.name)
}
if (!unlocked) {
return (
<div className="page">
<header>
<div className="ornament"> &nbsp; Admin &nbsp; </div>
<h1>Who Did It?</h1>
<p className="subtitle">Admin</p>
<div className="gold-rule"></div>
</header>
<div className="player-setup" style={{ maxWidth: 400 }}>
<h2>Enter admin password</h2>
<form onSubmit={handleUnlock}>
<div className="name-row">
<input
type="password"
placeholder="Password"
value={password}
onChange={(e) => { setPassword(e.target.value); setPasswordError('') }}
autoFocus
/>
</div>
<button type="submit" className="btn-primary">Unlock</button>
{passwordError && <p className="error-msg">{passwordError}</p>}
</form>
</div>
<footer>
<Link to="/" style={{ color: 'var(--gold)' }}> Back to home</Link>
</footer>
</div>
)
}
if (loading) return <div className="page">Loading</div>
return (
<div className="page">
<header>
<div className="ornament"> &nbsp; Admin &nbsp; </div>
<h1>Who Did It?</h1>
<p className="subtitle">Results &amp; Assignments</p>
<div className="gold-rule"></div>
<p style={{ marginTop: 8 }}>
<Link to="/" style={{ color: 'var(--gold)', textDecoration: 'underline' }}> Back to home</Link>
</p>
</header>
<div style={{ width: '100%', maxWidth: 800, marginBottom: 32 }}>
<h2 style={{ fontFamily: "'Playfair Display', serif", color: 'var(--gold)', marginBottom: 16, fontSize: '1.3rem' }}>
Results
</h2>
<div className="characters-grid" style={{ marginBottom: 24 }}>
{characters.map((ch) => {
const b = pickBreakdown[ch.id] || { first: [], second: [], third: [] }
return (
<div key={ch.id} className="character-card" style={{ borderColor: ch.color + '66' }}>
<div className="card-header" style={{ color: ch.color }}>
<span className="character-icon">{ch.icon}</span>
<span className="character-name">{ch.name}</span>
</div>
<div className="card-body">
<p style={{ fontSize: '0.9rem', marginBottom: 8 }}>
<strong>1st:</strong> {b.first.length} {b.first.join(', ') || '—'}
</p>
<p style={{ fontSize: '0.9rem', marginBottom: 8 }}>
<strong>2nd:</strong> {b.second.length} {b.second.join(', ') || '—'}
</p>
<p style={{ fontSize: '0.9rem' }}>
<strong>3rd:</strong> {b.third.length} {b.third.join(', ') || '—'}
</p>
</div>
</div>
)
})}
</div>
<div style={{ display: 'flex', gap: 12, flexWrap: 'wrap', marginBottom: 32 }}>
<button type="button" className="btn-primary" onClick={handleAssign} style={{ width: 'auto' }}>
Assign Teams
</button>
<button
type="button"
className="btn-primary"
onClick={handleClear}
style={{ width: 'auto', borderColor: 'rgba(231,76,60,0.6)', color: '#e74c3c' }}
>
Clear All Submissions
</button>
</div>
{assignments && (
<div style={{ marginTop: 24 }}>
<h2 style={{ fontFamily: "'Playfair Display', serif", color: 'var(--gold)', marginBottom: 16, fontSize: '1.3rem' }}>
Final Assignments
</h2>
<div className="characters-grid">
{characters.map((ch) => {
const a = assignments[ch.id]
return (
<div key={ch.id} className="character-card" style={{ borderColor: ch.color }}>
<div className="card-header" style={{ color: ch.color }}>
<span className="character-icon">{ch.icon}</span>
<span className="character-name">{ch.name}</span>
</div>
<div className="card-body">
{a.players.length === 0 ? (
<p style={{ fontStyle: 'italic', color: 'rgba(245,239,224,0.5)' }}>No one assigned</p>
) : (
<ul style={{ listStyle: 'none' }}>
{a.players.map((p) => (
<li key={p} style={{ padding: '4px 0' }}>🎭 {p}</li>
))}
</ul>
)}
</div>
</div>
)
})}
</div>
</div>
)}
</div>
<footer>Gather your suspects. Choose your costumes. Let the mystery begin.</footer>
</div>
)
}
+79
View File
@@ -0,0 +1,79 @@
import { useState, useEffect } from 'react'
import { useNavigate, Link } from 'react-router-dom'
export default function NameEntry() {
const [name, setName] = useState('')
const [error, setError] = useState('')
const [submissions, setSubmissions] = useState([])
const navigate = useNavigate()
useEffect(() => {
fetch('/api/submissions')
.then(r => r.json())
.then(setSubmissions)
.catch(() => setError('Could not load data'))
}, [])
const handleSubmit = async (e) => {
e.preventDefault()
setError('')
const trimmed = name.trim()
if (!trimmed) return
const lower = trimmed.toLowerCase()
const res = await fetch('/api/names')
const allowedNames = await res.json()
const isAllowed = allowedNames.some(n => n.toLowerCase() === lower)
if (!isAllowed) {
setError("We don't have that name on our guest list.")
return
}
const alreadySubmitted = submissions.some(s => s.name.toLowerCase() === lower)
if (alreadySubmitted) {
setError('This name has already submitted picks.')
return
}
sessionStorage.setItem('whoDidItName', trimmed)
navigate('/rank', { state: { name: trimmed } })
}
return (
<div className="page">
<header>
<div className="ornament"> &nbsp; A Murder Mystery &nbsp; </div>
<h1>Who Did It?</h1>
<p className="subtitle">A Clue Costume Planner</p>
<div className="gold-rule"></div>
<p className="instructions">Enter your name to rank your top 3 character choices.</p>
</header>
<div className="player-setup">
<h2>Enter your name</h2>
<form onSubmit={handleSubmit}>
<div className="name-row">
<input
type="text"
placeholder="Enter your name…"
maxLength={30}
value={name}
onChange={(e) => { setName(e.target.value); setError('') }}
autoFocus
/>
</div>
<button type="submit" className="btn-primary" disabled={!name.trim()}>
Continue
</button>
{error && <p className="error-msg">{error}</p>}
</form>
</div>
<footer>
<Link to="/admin" style={{ opacity: 0.5, fontSize: '0.85rem' }}>Admin</Link>
<br />
Gather your suspects. Choose your costumes. Let the mystery begin.
</footer>
</div>
)
}
+140
View File
@@ -0,0 +1,140 @@
import { useState, useEffect } from 'react'
import { useNavigate, useLocation } from 'react-router-dom'
export default function Ranking() {
const [characters, setCharacters] = useState([])
const [ranks, setRanks] = useState({}) // { 1: charId, 2: charId, 3: charId }
const [loading, setLoading] = useState(true)
const [submitting, setSubmitting] = useState(false)
const [error, setError] = useState('')
const navigate = useNavigate()
const location = useLocation()
const name = location.state?.name || sessionStorage.getItem('whoDidItName')
useEffect(() => {
if (!name) {
navigate('/', { replace: true })
return
}
fetch('/api/characters')
.then(r => r.json())
.then(setCharacters)
.catch(() => setError('Could not load characters'))
.finally(() => setLoading(false))
}, [name, navigate])
const handleRank = (charId, rankNum) => {
setRanks(prev => {
const next = { ...prev }
// Remove this rank from any other card
for (const [r, cid] of Object.entries(next)) {
if (cid === charId && Number(r) !== rankNum) delete next[r]
if (Number(r) === rankNum && cid !== charId) delete next[r]
}
next[rankNum] = charId
return next
})
}
const getRankForChar = (charId) => {
for (const [r, cid] of Object.entries(ranks)) {
if (cid === charId) return Number(r)
}
return null
}
const isRankTaken = (rankNum) => !!ranks[rankNum]
const allThreeAssigned = ranks[1] && ranks[2] && ranks[3]
const handleSubmit = async (e) => {
e.preventDefault()
if (!allThreeAssigned || !name) return
setSubmitting(true)
setError('')
try {
const res = await fetch('/api/submissions', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
name,
picks: [ranks[1], ranks[2], ranks[3]],
}),
})
const data = await res.json()
if (!res.ok) {
setError(data.error || 'Submission failed')
setSubmitting(false)
return
}
navigate('/thanks', { state: { name } })
} catch {
setError('Submission failed')
setSubmitting(false)
}
}
if (!name) return null
return (
<div className="page">
<header>
<div className="ornament"> &nbsp; Rank Your Choices &nbsp; </div>
<h1>Who Did It?</h1>
<p className="subtitle">Pick your top 3 characters, {name}</p>
<div className="gold-rule"></div>
<p className="instructions">Select 1st, 2nd, and 3rd choice. Click a rank on a card to assign it.</p>
</header>
{loading && <p>Loading characters</p>}
{error && <p className="error-msg" style={{ marginBottom: 16 }}>{error}</p>}
{!loading && (
<>
<div className="characters-grid">
{characters.map((ch) => (
<div
key={ch.id}
className={`character-card ${getRankForChar(ch.id) ? 'card-ranked' : ''}`}
style={{ '--card-color': ch.color }}
>
<div className="card-header" style={{ color: ch.color }}>
<span className="character-icon">{ch.icon}</span>
<span className="character-name">{ch.name}</span>
</div>
<div className="card-body">
<p className="costume-hint">{ch.costumeHint}</p>
<div className="rank-badges">
{[1, 2, 3].map((r) => (
<button
key={r}
type="button"
className={`rank-badge ${getRankForChar(ch.id) === r ? 'selected' : ''}`}
onClick={() => handleRank(ch.id, r)}
>
{r}{r === 1 ? 'st' : r === 2 ? 'nd' : 'rd'} choice
</button>
))}
</div>
</div>
</div>
))}
</div>
<form onSubmit={handleSubmit} style={{ maxWidth: 400, width: '100%' }}>
<button
type="submit"
className="btn-primary"
disabled={!allThreeAssigned || submitting}
>
{submitting ? 'Submitting…' : 'Submit my picks'}
</button>
</form>
</>
)}
<footer>Gather your suspects. Choose your costumes. Let the mystery begin.</footer>
</div>
)
}
+27
View File
@@ -0,0 +1,27 @@
import { useLocation, Link } from 'react-router-dom'
export default function Thanks() {
const location = useLocation()
const name = location.state?.name || sessionStorage.getItem('whoDidItName') || 'there'
return (
<div className="page">
<header>
<div className="ornament"> &nbsp; Thank You &nbsp; </div>
<h1>Who Did It?</h1>
<div className="gold-rule"></div>
</header>
<div className="player-setup" style={{ textAlign: 'center', padding: '48px 32px' }}>
<p style={{ fontSize: '1.4rem', marginBottom: 24 }}>
Thanks, {name}! Your picks are in. Good luck. 🕯
</p>
<Link to="/" style={{ color: 'var(--gold)', textDecoration: 'underline', fontStyle: 'italic' }}>
Back to home
</Link>
</div>
<footer>Gather your suspects. Choose your costumes. Let the mystery begin.</footer>
</div>
)
}
+14
View File
@@ -0,0 +1,14 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': {
target: 'http://localhost:3001',
changeOrigin: true,
},
},
},
})
+26
View File
@@ -0,0 +1,26 @@
# Docker Build Script for Windows PowerShell
# Builds the Docker image for docker-registry.kolpacksoftware.com
param(
[string]$ImageName = "clue-picker",
[string]$Tag = "latest",
[string]$Registry = "docker-registry.kolpacksoftware.com"
)
$FullImageName = "${Registry}/${ImageName}:${Tag}"
Write-Host "Building Docker image: $FullImageName" -ForegroundColor Green
docker build -t $FullImageName .
if ($LASTEXITCODE -ne 0) {
Write-Host "Docker build failed!" -ForegroundColor Red
exit 1
}
Write-Host "Build successful!" -ForegroundColor Green
Write-Host ""
Write-Host "To push the image, run:" -ForegroundColor Yellow
Write-Host " docker push $FullImageName" -ForegroundColor Cyan
Write-Host ""
Write-Host "Or use the docker-push.ps1 script" -ForegroundColor Yellow
+22
View File
@@ -0,0 +1,22 @@
#!/bin/bash
# Docker Build Script for Linux/Mac
# Builds the Docker image for docker-registry.kolpacksoftware.com
set -e
IMAGE_NAME="${IMAGE_NAME:-clue-picker}"
TAG="${TAG:-latest}"
REGISTRY="${REGISTRY:-docker-registry.kolpacksoftware.com}"
FULL_IMAGE_NAME="$REGISTRY/$IMAGE_NAME:$TAG"
echo "Building Docker image: $FULL_IMAGE_NAME"
docker build -t "$FULL_IMAGE_NAME" .
echo "Build successful!"
echo ""
echo "To push the image, run:"
echo " docker push $FULL_IMAGE_NAME"
echo ""
echo "Or use the docker-push.sh script"
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
set -e
cd /app/server
mkdir -p data
exec "$@"
+35
View File
@@ -0,0 +1,35 @@
# Docker Push Script for Windows PowerShell
# Pushes the Docker image to docker-registry.kolpacksoftware.com
param(
[string]$ImageName = "clue-picker",
[string]$Tag = "latest",
[string]$Registry = "docker-registry.kolpacksoftware.com"
)
$FullImageName = "${Registry}/${ImageName}:${Tag}"
Write-Host "Pushing Docker image: $FullImageName" -ForegroundColor Green
$imageExists = docker images $FullImageName --format "{{.Repository}}:{{.Tag}}" | Select-String -Pattern $FullImageName
if (-not $imageExists) {
Write-Host "Image $FullImageName not found locally. Building first..." -ForegroundColor Yellow
& "$PSScriptRoot\docker-build.ps1" -ImageName $ImageName -Tag $Tag -Registry $Registry
if ($LASTEXITCODE -ne 0) {
Write-Host "Build failed!" -ForegroundColor Red
exit 1
}
}
docker push $FullImageName
if ($LASTEXITCODE -ne 0) {
Write-Host "Docker push failed!" -ForegroundColor Red
Write-Host "Make sure you are logged in to the registry:" -ForegroundColor Yellow
Write-Host " docker login $Registry" -ForegroundColor Cyan
exit 1
}
Write-Host "Push successful!" -ForegroundColor Green
Write-Host "Image available at: $FullImageName" -ForegroundColor Cyan
+23
View File
@@ -0,0 +1,23 @@
#!/bin/bash
# Docker Push Script for Linux/Mac
# Pushes the Docker image to docker-registry.kolpacksoftware.com
set -e
IMAGE_NAME="${IMAGE_NAME:-clue-picker}"
TAG="${TAG:-latest}"
REGISTRY="${REGISTRY:-docker-registry.kolpacksoftware.com}"
FULL_IMAGE_NAME="$REGISTRY/$IMAGE_NAME:$TAG"
echo "Pushing Docker image: $FULL_IMAGE_NAME"
if ! docker images "$FULL_IMAGE_NAME" --format "{{.Repository}}:{{.Tag}}" | grep -q "$FULL_IMAGE_NAME"; then
echo "Image $FULL_IMAGE_NAME not found locally. Building first..."
"$(dirname "$0")/docker-build.sh"
fi
docker push "$FULL_IMAGE_NAME"
echo "Push successful!"
echo "Image available at: $FULL_IMAGE_NAME"
+3
View File
@@ -0,0 +1,3 @@
PORT=3001
ADMIN_PASSWORD=clue2024
ALLOWED_NAMES=Jim,Colleen,Rory,Gigi,Meghan,Christine,Bob,Rachel,Chuck
View File
+155
View File
@@ -0,0 +1,155 @@
import express from 'express'
import cors from 'cors'
import { readFileSync, writeFileSync, mkdirSync, existsSync } from 'fs'
import { fileURLToPath } from 'url'
import { dirname, join } from 'path'
import 'dotenv/config'
const __dirname = dirname(fileURLToPath(import.meta.url))
const CHARACTERS = [
{ id: 'scarlet', name: 'Miss Scarlett', color: '#c0392b', costumeHint: 'Deep red dress or suit, dark lipstick', icon: '🌹' },
{ id: 'mustard', name: 'Colonel Mustard', color: '#d4a017', costumeHint: 'Mustard yellow jacket or military', icon: '🎖️' },
{ id: 'white', name: 'Mrs. White', color: '#e8e0d0', costumeHint: 'Off-white apron, black dress', icon: '🕯️' },
{ id: 'green', name: 'Mr. Green', color: '#1e6e3b', costumeHint: 'Forest green suit or vest', icon: '📖' },
{ id: 'peacock', name: 'Mrs. Peacock', color: '#1a3a6b', costumeHint: 'Royal blue dress, pearls, gloves', icon: '💎' },
{ id: 'plum', name: 'Professor Plum', color: '#6b2d6b', costumeHint: 'Purple blazer, glasses', icon: '🔭' },
]
const DEFAULT_ALLOWED_NAMES = 'Jim,Colleen,Rory,Gigi,Meghan,Christine,Bob,Rachel,Chuck'
const app = express()
app.use(cors())
app.use(express.json())
const DATA_DIR = join(__dirname, 'data')
const SUBMISSIONS_PATH = join(DATA_DIR, 'submissions.json')
function ensureDataDir() {
if (!existsSync(DATA_DIR)) {
mkdirSync(DATA_DIR, { recursive: true })
}
}
function readSubmissions() {
ensureDataDir()
if (!existsSync(SUBMISSIONS_PATH)) {
return []
}
try {
const data = readFileSync(SUBMISSIONS_PATH, 'utf-8')
return JSON.parse(data)
} catch {
return []
}
}
function writeSubmissions(submissions) {
ensureDataDir()
writeFileSync(SUBMISSIONS_PATH, JSON.stringify(submissions, null, 2))
}
function getAllowedNames() {
const raw = process.env.ALLOWED_NAMES || DEFAULT_ALLOWED_NAMES
return raw.split(',').map(s => s.trim()).filter(Boolean)
}
function isNameAllowed(name) {
const allowed = getAllowedNames()
const lower = (name || '').trim().toLowerCase()
return allowed.some(a => a.toLowerCase() === lower)
}
function findSubmittedName(name, submissions) {
const lower = (name || '').trim().toLowerCase()
return submissions.find(s => s.name.toLowerCase() === lower)
}
const charIds = new Set(CHARACTERS.map(c => c.id))
// API routes
app.get('/api/characters', (req, res) => {
res.json(CHARACTERS)
})
app.get('/api/names', (req, res) => {
res.json(getAllowedNames())
})
app.get('/api/submissions', (req, res) => {
res.json(readSubmissions())
})
app.post('/api/submissions', (req, res) => {
const { name, picks } = req.body
const trimmedName = (name || '').trim()
if (!trimmedName) {
return res.status(400).json({ error: 'Name is required' })
}
if (!isNameAllowed(trimmedName)) {
return res.status(400).json({ error: "We don't have that name on our guest list." })
}
const submissions = readSubmissions()
if (findSubmittedName(trimmedName, submissions)) {
return res.status(400).json({ error: 'This name has already submitted picks.' })
}
if (!Array.isArray(picks) || picks.length !== 3) {
return res.status(400).json({ error: 'Exactly 3 picks (1st, 2nd, 3rd choice) are required' })
}
if (!picks.every(id => charIds.has(id))) {
return res.status(400).json({ error: 'Invalid character IDs in picks' })
}
const set = new Set(picks)
if (set.size !== 3) {
return res.status(400).json({ error: 'Picks must be 3 unique character IDs' })
}
submissions.push({ name: trimmedName, picks })
writeSubmissions(submissions)
res.json({ success: true })
})
app.post('/api/admin/verify', (req, res) => {
const { password } = req.body || {}
const expected = process.env.ADMIN_PASSWORD || 'clue2024'
if (password === expected) {
res.json({ ok: true })
} else {
res.status(401).json({ error: 'Incorrect password' })
}
})
app.delete('/api/submissions', (req, res) => {
const token = req.headers.authorization?.replace(/^Bearer\s+/i, '') || req.headers['x-admin-password']
const expected = process.env.ADMIN_PASSWORD || 'clue2024'
if (token !== expected) {
return res.status(401).json({ error: 'Unauthorized' })
}
writeSubmissions([])
res.json({ success: true })
})
// Production: serve built React app
const isProd = process.env.NODE_ENV === 'production'
const clientDist = join(__dirname, '..', 'client', 'dist')
if (isProd && existsSync(clientDist)) {
app.use(express.static(clientDist))
app.get('*', (req, res) => {
res.sendFile(join(clientDist, 'index.html'))
})
}
const PORT = process.env.PORT || 3001
app.listen(PORT, () => {
console.log(`Server running on port ${PORT}`)
})
+867
View File
@@ -0,0 +1,867 @@
{
"name": "who-did-it-server",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "who-did-it-server",
"version": "1.0.0",
"dependencies": {
"cors": "^2.8.5",
"dotenv": "^16.3.1",
"express": "^4.18.2"
}
},
"node_modules/accepts": {
"version": "1.3.8",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
"license": "MIT",
"dependencies": {
"mime-types": "~2.1.34",
"negotiator": "0.6.3"
},
"engines": {
"node": ">= 0.6"
}
},
"node_modules/array-flatten": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
"license": "MIT"
},
"node_modules/body-parser": {
"version": "1.20.4",
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.4.tgz",
"integrity": "sha512-ZTgYYLMOXY9qKU/57FAo8F+HA2dGX7bqGc71txDRC1rS4frdFI5R7NhluHxH6M0YItAP0sHB4uqAOcYKxO6uGA==",
"license": "MIT",
"dependencies": {
"bytes": "~3.1.2",
"content-type": "~1.0.5",
"debug": "2.6.9",
"depd": "2.0.0",
"destroy": "~1.2.0",
"http-errors": "~2.0.1",
"iconv-lite": "~0.4.24",
"on-finished": "~2.4.1",
"qs": "~6.14.0",
"raw-body": "~2.5.3",
"type-is": "~1.6.18",
"unpipe": "~1.0.0"
},
"engines": {
"node": ">= 0.8",
"npm": "1.2.8000 || >= 1.4.16"
}
},
"node_modules/bytes": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
"integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
"license": "MIT",
"engines": {
"node": ">= 0.8"
}
},
"node_modules/call-bind-apply-helpers": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
"integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0",
"function-bind": "^1.1.2"
},
"engines": {
"node": ">= 0.4"
}
},
"node_modules/call-bound": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
"integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
"license": "MIT",
"dependencies": {
"call-bind-apply-helpers": "^1.0.2",
"get-intrinsic": "^1.3.0"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/content-disposition": {
"version": "0.5.4",
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
"license": "MIT",
"dependencies": {
"safe-buffer": "5.2.1"
},
"engines": {
"node": ">= 0.6"
}
},
"node_modules/content-type": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/cookie": {
"version": "0.7.2",
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
"integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/cookie-signature": {
"version": "1.0.7",
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz",
"integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==",
"license": "MIT"
},
"node_modules/cors": {
"version": "2.8.6",
"resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz",
"integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==",
"license": "MIT",
"dependencies": {
"object-assign": "^4",
"vary": "^1"
},
"engines": {
"node": ">= 0.10"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
}
},
"node_modules/debug": {
"version": "2.6.9",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
"license": "MIT",
"dependencies": {
"ms": "2.0.0"
}
},
"node_modules/depd": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
"license": "MIT",
"engines": {
"node": ">= 0.8"
}
},
"node_modules/destroy": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
"integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
"license": "MIT",
"engines": {
"node": ">= 0.8",
"npm": "1.2.8000 || >= 1.4.16"
}
},
"node_modules/dotenv": {
"version": "16.6.1",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",
"integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",
"license": "BSD-2-Clause",
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://dotenvx.com"
}
},
"node_modules/dunder-proto": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
"integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
"license": "MIT",
"dependencies": {
"call-bind-apply-helpers": "^1.0.1",
"es-errors": "^1.3.0",
"gopd": "^1.2.0"
},
"engines": {
"node": ">= 0.4"
}
},
"node_modules/ee-first": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
"license": "MIT"
},
"node_modules/encodeurl": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
"integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
"license": "MIT",
"engines": {
"node": ">= 0.8"
}
},
"node_modules/es-define-property": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
"license": "MIT",
"engines": {
"node": ">= 0.4"
}
},
"node_modules/es-errors": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
"license": "MIT",
"engines": {
"node": ">= 0.4"
}
},
"node_modules/es-object-atoms": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
"integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0"
},
"engines": {
"node": ">= 0.4"
}
},
"node_modules/escape-html": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
"license": "MIT"
},
"node_modules/etag": {
"version": "1.8.1",
"resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
"integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/express": {
"version": "4.22.1",
"resolved": "https://registry.npmjs.org/express/-/express-4.22.1.tgz",
"integrity": "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==",
"license": "MIT",
"dependencies": {
"accepts": "~1.3.8",
"array-flatten": "1.1.1",
"body-parser": "~1.20.3",
"content-disposition": "~0.5.4",
"content-type": "~1.0.4",
"cookie": "~0.7.1",
"cookie-signature": "~1.0.6",
"debug": "2.6.9",
"depd": "2.0.0",
"encodeurl": "~2.0.0",
"escape-html": "~1.0.3",
"etag": "~1.8.1",
"finalhandler": "~1.3.1",
"fresh": "~0.5.2",
"http-errors": "~2.0.0",
"merge-descriptors": "1.0.3",
"methods": "~1.1.2",
"on-finished": "~2.4.1",
"parseurl": "~1.3.3",
"path-to-regexp": "~0.1.12",
"proxy-addr": "~2.0.7",
"qs": "~6.14.0",
"range-parser": "~1.2.1",
"safe-buffer": "5.2.1",
"send": "~0.19.0",
"serve-static": "~1.16.2",
"setprototypeof": "1.2.0",
"statuses": "~2.0.1",
"type-is": "~1.6.18",
"utils-merge": "1.0.1",
"vary": "~1.1.2"
},
"engines": {
"node": ">= 0.10.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
}
},
"node_modules/finalhandler": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz",
"integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==",
"license": "MIT",
"dependencies": {
"debug": "2.6.9",
"encodeurl": "~2.0.0",
"escape-html": "~1.0.3",
"on-finished": "~2.4.1",
"parseurl": "~1.3.3",
"statuses": "~2.0.2",
"unpipe": "~1.0.0"
},
"engines": {
"node": ">= 0.8"
}
},
"node_modules/forwarded": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
"integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/fresh": {
"version": "0.5.2",
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
"integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/function-bind": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/get-intrinsic": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
"integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
"license": "MIT",
"dependencies": {
"call-bind-apply-helpers": "^1.0.2",
"es-define-property": "^1.0.1",
"es-errors": "^1.3.0",
"es-object-atoms": "^1.1.1",
"function-bind": "^1.1.2",
"get-proto": "^1.0.1",
"gopd": "^1.2.0",
"has-symbols": "^1.1.0",
"hasown": "^2.0.2",
"math-intrinsics": "^1.1.0"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/get-proto": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
"integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
"license": "MIT",
"dependencies": {
"dunder-proto": "^1.0.1",
"es-object-atoms": "^1.0.0"
},
"engines": {
"node": ">= 0.4"
}
},
"node_modules/gopd": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
"license": "MIT",
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/has-symbols": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
"license": "MIT",
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/hasown": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
"license": "MIT",
"dependencies": {
"function-bind": "^1.1.2"
},
"engines": {
"node": ">= 0.4"
}
},
"node_modules/http-errors": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
"integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
"license": "MIT",
"dependencies": {
"depd": "~2.0.0",
"inherits": "~2.0.4",
"setprototypeof": "~1.2.0",
"statuses": "~2.0.2",
"toidentifier": "~1.0.1"
},
"engines": {
"node": ">= 0.8"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/express"
}
},
"node_modules/iconv-lite": {
"version": "0.4.24",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
"license": "MIT",
"dependencies": {
"safer-buffer": ">= 2.1.2 < 3"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/inherits": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
"license": "ISC"
},
"node_modules/ipaddr.js": {
"version": "1.9.1",
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
"license": "MIT",
"engines": {
"node": ">= 0.10"
}
},
"node_modules/math-intrinsics": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
"integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
"license": "MIT",
"engines": {
"node": ">= 0.4"
}
},
"node_modules/media-typer": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
"integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/merge-descriptors": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
"integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/methods": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
"integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/mime": {
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
"license": "MIT",
"bin": {
"mime": "cli.js"
},
"engines": {
"node": ">=4"
}
},
"node_modules/mime-db": {
"version": "1.52.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/mime-types": {
"version": "2.1.35",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
"license": "MIT",
"dependencies": {
"mime-db": "1.52.0"
},
"engines": {
"node": ">= 0.6"
}
},
"node_modules/ms": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
"license": "MIT"
},
"node_modules/negotiator": {
"version": "0.6.3",
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
"integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/object-assign": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/object-inspect": {
"version": "1.13.4",
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
"integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
"license": "MIT",
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/on-finished": {
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
"integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
"license": "MIT",
"dependencies": {
"ee-first": "1.1.1"
},
"engines": {
"node": ">= 0.8"
}
},
"node_modules/parseurl": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
"license": "MIT",
"engines": {
"node": ">= 0.8"
}
},
"node_modules/path-to-regexp": {
"version": "0.1.12",
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
"integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==",
"license": "MIT"
},
"node_modules/proxy-addr": {
"version": "2.0.7",
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
"integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
"license": "MIT",
"dependencies": {
"forwarded": "0.2.0",
"ipaddr.js": "1.9.1"
},
"engines": {
"node": ">= 0.10"
}
},
"node_modules/qs": {
"version": "6.14.2",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.14.2.tgz",
"integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==",
"license": "BSD-3-Clause",
"dependencies": {
"side-channel": "^1.1.0"
},
"engines": {
"node": ">=0.6"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/range-parser": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/raw-body": {
"version": "2.5.3",
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz",
"integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==",
"license": "MIT",
"dependencies": {
"bytes": "~3.1.2",
"http-errors": "~2.0.1",
"iconv-lite": "~0.4.24",
"unpipe": "~1.0.0"
},
"engines": {
"node": ">= 0.8"
}
},
"node_modules/safe-buffer": {
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"license": "MIT"
},
"node_modules/safer-buffer": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
"license": "MIT"
},
"node_modules/send": {
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz",
"integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==",
"license": "MIT",
"dependencies": {
"debug": "2.6.9",
"depd": "2.0.0",
"destroy": "1.2.0",
"encodeurl": "~2.0.0",
"escape-html": "~1.0.3",
"etag": "~1.8.1",
"fresh": "~0.5.2",
"http-errors": "~2.0.1",
"mime": "1.6.0",
"ms": "2.1.3",
"on-finished": "~2.4.1",
"range-parser": "~1.2.1",
"statuses": "~2.0.2"
},
"engines": {
"node": ">= 0.8.0"
}
},
"node_modules/send/node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
"license": "MIT"
},
"node_modules/serve-static": {
"version": "1.16.3",
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz",
"integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==",
"license": "MIT",
"dependencies": {
"encodeurl": "~2.0.0",
"escape-html": "~1.0.3",
"parseurl": "~1.3.3",
"send": "~0.19.1"
},
"engines": {
"node": ">= 0.8.0"
}
},
"node_modules/setprototypeof": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
"license": "ISC"
},
"node_modules/side-channel": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
"integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0",
"object-inspect": "^1.13.3",
"side-channel-list": "^1.0.0",
"side-channel-map": "^1.0.1",
"side-channel-weakmap": "^1.0.2"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/side-channel-list": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
"integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0",
"object-inspect": "^1.13.3"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/side-channel-map": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
"integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
"license": "MIT",
"dependencies": {
"call-bound": "^1.0.2",
"es-errors": "^1.3.0",
"get-intrinsic": "^1.2.5",
"object-inspect": "^1.13.3"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/side-channel-weakmap": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
"integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
"license": "MIT",
"dependencies": {
"call-bound": "^1.0.2",
"es-errors": "^1.3.0",
"get-intrinsic": "^1.2.5",
"object-inspect": "^1.13.3",
"side-channel-map": "^1.0.1"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/statuses": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
"integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
"license": "MIT",
"engines": {
"node": ">= 0.8"
}
},
"node_modules/toidentifier": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
"license": "MIT",
"engines": {
"node": ">=0.6"
}
},
"node_modules/type-is": {
"version": "1.6.18",
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
"integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
"license": "MIT",
"dependencies": {
"media-typer": "0.3.0",
"mime-types": "~2.1.24"
},
"engines": {
"node": ">= 0.6"
}
},
"node_modules/unpipe": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
"integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
"license": "MIT",
"engines": {
"node": ">= 0.8"
}
},
"node_modules/utils-merge": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
"integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
"license": "MIT",
"engines": {
"node": ">= 0.4.0"
}
},
"node_modules/vary": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
"integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
"license": "MIT",
"engines": {
"node": ">= 0.8"
}
}
}
}
+14
View File
@@ -0,0 +1,14 @@
{
"name": "who-did-it-server",
"version": "1.0.0",
"type": "module",
"scripts": {
"start": "node index.js",
"dev": "node --watch index.js"
},
"dependencies": {
"cors": "^2.8.5",
"dotenv": "^16.3.1",
"express": "^4.18.2"
}
}