diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..ee81ea5 --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ +DATABASE_URL=postgresql://postgres:postgres@localhost:5432/wedding_planner +NEXTAUTH_SECRET=your-secret +NEXTAUTH_URL=http://localhost:3000 \ No newline at end of file diff --git a/README.md b/README.md index 461dddf..2937010 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ My goal for this project is to be an all-in-one self hosted event planner for ma - [ ] Gift Registries - [ ] Ability for guests to mark an item as purchased - [ ] Task Management +- [ ] Custom Theming ### Possible Features - Budget Tracking diff --git a/app/(auth)/dashboard/page.tsx b/app/(auth)/dashboard/page.tsx index b8e1a83..0696fb4 100644 --- a/app/(auth)/dashboard/page.tsx +++ b/app/(auth)/dashboard/page.tsx @@ -1,7 +1,34 @@ +import { queries } from '@/lib/queries' +import Link from 'next/link' import React from 'react' -export default function DashboardPage() { +export default async function DashboardPage() { + const events = await queries.fetchEvents() + console.log(events) + return ( -
ID: {item.id}
+Name: {item.name}
+Date: {item.date ? item.date.toISOString() : 'null'}
+Location: {item.location ? item.location : 'null'}
+Creator ID:{item.creatorId}
+Created At:{item.createdAt.toISOString()}
+ +
- app/page.tsx
-
- .
-