|
1 | | -# Turborepo starter |
| 1 | +# HackScore-AI |
2 | 2 |
|
3 | | -This Turborepo starter is maintained by the Turborepo core team. |
| 3 | +**Real-Time AI Judging for Hackathon Pitches** |
4 | 4 |
|
5 | | -## Using this example |
| 5 | +HackScore-AI is a chat-based AI judging system that simulates a real hackathon judging panel using multi-agent AI evaluation, providing structured, rubric-driven feedback for hackathon projects. |
6 | 6 |
|
7 | | -Run the following command: |
| 7 | +## 🚀 Project Status |
8 | 8 |
|
9 | | -```sh |
10 | | -npx create-turbo@latest |
11 | | -``` |
| 9 | +- ✅ **Phase 1: Project Setup & Infrastructure** - Complete |
| 10 | +- ✅ **Phase 2: Database & Authentication** - Complete |
| 11 | +- 🔄 **Phase 3: Backend API Foundation** - In Progress |
| 12 | +- ⏳ **Phase 4: LangGraph Agent System** - Pending |
| 13 | +- ⏳ **Phase 5: Frontend Core** - Pending |
| 14 | + |
| 15 | +See [docs/steps.md](docs/steps.md) for detailed progress tracking. |
12 | 16 |
|
13 | | -## What's inside? |
| 17 | +## 🏗️ Architecture |
14 | 18 |
|
15 | | -This Turborepo includes the following packages/apps: |
| 19 | +This is a **pnpm workspace monorepo** managed with **Turborepo**. |
16 | 20 |
|
17 | 21 | ### Apps and Packages |
18 | 22 |
|
19 | | -- `docs`: a [Next.js](https://nextjs.org/) app |
20 | | -- `web`: another [Next.js](https://nextjs.org/) app |
21 | | -- `@repo/ui`: a stub React component library shared by both `web` and `docs` applications |
22 | | -- `@repo/eslint-config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`) |
23 | | -- `@repo/typescript-config`: `tsconfig.json`s used throughout the monorepo |
| 23 | +- `apps/api` - Express.js backend with Prisma ORM (Port: 4000) |
| 24 | +- `apps/web` - Vite + React frontend (Port: 3000) |
| 25 | +- `apps/docs` - Next.js documentation site |
| 26 | +- `@hackscore/shared` - Shared TypeScript types |
| 27 | +- `@hackscore/ui` - shadcn/ui component library |
| 28 | +- `@repo/eslint-config` - Shared ESLint configurations |
| 29 | +- `@repo/typescript-config` - Shared TypeScript configurations |
| 30 | + |
| 31 | +### Tech Stack |
24 | 32 |
|
25 | | -Each package/app is 100% [TypeScript](https://www.typescriptlang.org/). |
| 33 | +**Backend:** |
| 34 | +- Node.js + Express + TypeScript |
| 35 | +- PostgreSQL + Prisma ORM |
| 36 | +- Passport.js (Authentication) |
| 37 | +- LangGraph (AI Agent Orchestration) |
| 38 | +- OpenAI/Gemini (LLM Provider) |
26 | 39 |
|
27 | | -### Utilities |
| 40 | +**Frontend:** |
| 41 | +- React + Vite + TypeScript |
| 42 | +- Tailwind CSS v4 |
| 43 | +- shadcn/ui components |
28 | 44 |
|
29 | | -This Turborepo has some additional tools already setup for you: |
| 45 | +**Infrastructure:** |
| 46 | +- Docker Compose (PostgreSQL, Redis) |
| 47 | +- pnpm workspaces |
| 48 | +- Turborepo |
30 | 49 |
|
31 | | -- [TypeScript](https://www.typescriptlang.org/) for static type checking |
32 | | -- [ESLint](https://eslint.org/) for code linting |
33 | | -- [Prettier](https://prettier.io) for code formatting |
| 50 | +## 🚀 Quick Start |
34 | 51 |
|
35 | | -### Build |
| 52 | +### Prerequisites |
36 | 53 |
|
37 | | -To build all apps and packages, run the following command: |
| 54 | +- Node.js 18+ |
| 55 | +- pnpm 9+ |
| 56 | +- Docker & Docker Compose |
38 | 57 |
|
| 58 | +### 1. Clone and Install |
| 59 | + |
| 60 | +```bash |
| 61 | +git clone <repository-url> |
| 62 | +cd HackScore-AI |
| 63 | +pnpm install |
39 | 64 | ``` |
40 | | -cd my-turborepo |
41 | 65 |
|
42 | | -# With [global `turbo`](https://turborepo.dev/docs/getting-started/installation#global-installation) installed (recommended) |
43 | | -turbo build |
| 66 | +### 2. Environment Setup |
44 | 67 |
|
45 | | -# Without [global `turbo`](https://turborepo.dev/docs/getting-started/installation#global-installation), use your package manager |
46 | | -npx turbo build |
47 | | -yarn dlx turbo build |
48 | | -pnpm exec turbo build |
| 68 | +```bash |
| 69 | +# Copy environment template |
| 70 | +cp .env.example apps/api/.env |
| 71 | + |
| 72 | +# Generate secure AUTH_SECRET |
| 73 | +openssl rand -base64 32 |
| 74 | + |
| 75 | +# Update apps/api/.env with: |
| 76 | +# - DATABASE_URL (already configured) |
| 77 | +# - AUTH_SECRET (generated above) |
| 78 | +# - GOOGLE_CLIENT_ID (from Google Console) |
| 79 | +# - GOOGLE_CLIENT_SECRET (from Google Console) |
| 80 | +``` |
| 81 | + |
| 82 | +### 3. Start Database |
| 83 | + |
| 84 | +```bash |
| 85 | +docker compose up -d postgres |
| 86 | +``` |
| 87 | + |
| 88 | +### 4. Run Migrations & Seed |
| 89 | + |
| 90 | +```bash |
| 91 | +cd apps/api |
| 92 | +pnpm prisma migrate dev |
| 93 | +pnpm db:seed |
| 94 | +``` |
| 95 | + |
| 96 | +### 5. Start Development Servers |
| 97 | + |
| 98 | +```bash |
| 99 | +# Option 1: Start all apps with Turborepo |
| 100 | +cd ../.. |
| 101 | +pnpm dev |
| 102 | + |
| 103 | +# Option 2: Start API only |
| 104 | +cd apps/api |
| 105 | +pnpm dev |
| 106 | +``` |
| 107 | + |
| 108 | +### 6. Verify Setup |
| 109 | + |
| 110 | +```bash |
| 111 | +# Check API health |
| 112 | +curl http://localhost:4000/health |
| 113 | + |
| 114 | +# Check authentication |
| 115 | +curl http://localhost:4000/api/auth/session |
| 116 | +``` |
| 117 | + |
| 118 | +## 📚 Documentation |
| 119 | + |
| 120 | +- [Project Overview](docs/project-overview.md) - Detailed specification |
| 121 | +- [Development Steps](docs/steps.md) - Task tracking |
| 122 | +- [Authentication Guide](docs/authentication.md) - Auth setup & API |
| 123 | +- [Database Reference](docs/database-reference.md) - Database commands |
| 124 | +- [Phase 2 Summary](docs/phase-2-summary.md) - Latest progress |
| 125 | + |
| 126 | +## 🔐 Authentication |
| 127 | + |
| 128 | +The system supports: |
| 129 | + |
| 130 | +- **Google OAuth 2.0** (production-ready) |
| 131 | +- **Magic Link Email** (simplified for MVP) |
| 132 | + |
| 133 | +See [Authentication Guide](docs/authentication.md) for setup instructions. |
| 134 | + |
| 135 | +## 💾 Database |
| 136 | + |
| 137 | +### Schema |
| 138 | + |
| 139 | +- `users` - User accounts |
| 140 | +- `chat_sessions` - Evaluation sessions |
| 141 | +- `messages` - Chat messages (user + agent) |
| 142 | +- `uploaded_files` - File uploads metadata |
| 143 | +- `session` - Session storage (auto-created) |
| 144 | + |
| 145 | +### Commands |
| 146 | + |
| 147 | +```bash |
| 148 | +cd apps/api |
| 149 | + |
| 150 | +# Open Prisma Studio |
| 151 | +pnpm db:studio |
| 152 | + |
| 153 | +# Create migration |
| 154 | +pnpm prisma migrate dev --name migration_name |
| 155 | + |
| 156 | +# Reset database |
| 157 | +pnpm db:reset |
| 158 | + |
| 159 | +# Seed data |
| 160 | +pnpm db:seed |
49 | 161 | ``` |
50 | 162 |
|
| 163 | +See [Database Reference](docs/database-reference.md) for more commands. |
| 164 | + |
51 | 165 | You can build a specific package by using a [filter](https://turborepo.dev/docs/crafting-your-repository/running-tasks#using-filters): |
52 | 166 |
|
53 | 167 | ``` |
|
0 commit comments