AI-powered summarization platform — write notes, get concise summaries, and view or edit them via a modern React UI.
| Layer | Technology |
|---|---|
| Frontend | React + TypeScript + TailwindCSS (v4) |
| Backend | Node.js + Express + TypeScript |
| ORM | Drizzle ORM (PostgreSQL) |
| AI | OpenAI (gpt-4o-mini) |
| Infrastructure | Docker + Docker Compose |
-
Navigate to the server directory:
cd server -
Copy the environment file and add your OpenAI API key & database credentials:
cp .env.example .env -
Install dependencies and start the server:
npm install npm run dev
-
Navigate to the client directory:
cd client -
Install dependencies and start the development server:
npm install npm run dev
At the project root:
docker compose up --build
This starts:
db→ PostgreSQL databaseapi→ Express backend on port 5050- (NOT YET)
client→ React frontend on port 5173
Access the application:
- Frontend: http://localhost:5173
- API: http://localhost:5050/api/summaries
File: server/.env
DB_HOST=db
DB_PORT=5432
DB_USER=postgres
DB_PASS=postgres
DB_NAME=prompthub
OPENAI_API_KEY=sk-your-key-here
NODE_ENV=dev|production
| Method | Route | Description |
|---|---|---|
| GET | /api/summaries |
List all summaries |
| GET | /api/summaries/:id |
Get a single summary |
| POST | /api/summaries |
Create summary (LLM-powered) |
| PUT | /api/summaries/:id |
Update an existing summary |
| DELETE | /api/summaries/:id |
Delete a summary |
- Add authentication
- Dockerize the frontend
- Add database readiness health checks
- Add "Regenerate with AI" functionality