A personal web application for tracking important decisions with context, confidence, and outcomes.
- Capture decisions with full context and metadata
- Track confidence levels and reversibility
- Review outcomes and learnings
- Organize with tags
- Search and filter decisions
- Responsive design (mobile cards, desktop table)
- Quick-add mode for fast entry
- Export to CSV
For detailed setup instructions, see SETUP.md
- Install dependencies:
npm install- Set up environment variables:
cp .env.example .env
# Edit .env and add your PostgreSQL DATABASE_URL- Set up the database:
npm run db:migrate # Create tables
npm run db:seed # Add sample data- Run the development server:
npm run devOpen http://localhost:3000 in your browser.
If you have PostgreSQL installed locally:
# Create database
createdb decision_log
# Update .env with connection string
DATABASE_URL="postgresql://postgres:password@localhost:5432/decision_log"For cloud PostgreSQL (Neon, Supabase, Railway, etc.):
- Create a database in your provider's dashboard
- Copy the connection string
- Paste it into your
.envfile asDATABASE_URL
-
Push your code to GitHub/GitLab/Bitbucket
-
Import the project in Vercel
-
Add environment variable in Vercel dashboard:
- Go to Settings → Environment Variables
- Name:
DATABASE_URL - Value: Your PostgreSQL connection string
- Environments: Production, Preview, Development
-
Update
package.jsonto add postinstall script:
"scripts": {
"postinstall": "prisma generate"
}-
Add Vercel build command (if needed):
- Build Command:
npm run build - Output Directory:
.next
- Build Command:
-
Deploy!
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run db:migrate- Run database migrationsnpm run db:generate- Generate Prisma Clientnpm run db:seed- Seed database with sample datanpm run db:studio- Open Prisma Studio
- Framework: Next.js 14 (App Router)
- Database: PostgreSQL with Prisma ORM
- Styling: Tailwind CSS
- Language: TypeScript