Skip to content

Commit 00ac8e5

Browse files
committed
Created Dashboard Page
1 parent fe54e87 commit 00ac8e5

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.env

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
DATABASE_HOST = "localhost"
2+
DATABASE_NAME = "mydatabase"
3+
DATABASE_PORT = "5432"
4+
DATABASE_USERNAME = "myuser"
5+
DATABASE_PASSWORD = "mypassword"
6+
DATABASE_URL = "postgresql://USERNAME:PASSWORD@HOST:PORT/NAME?schema=public"

src/app/dashboard/page.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from "react";
2+
3+
export default function DashboardPage() {
4+
return (
5+
<div>
6+
<div>Coming soon...</div>
7+
</div>
8+
);
9+
}

src/app/page.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import { Button } from "@/components/ui/button";
22
import { prisma } from "@/lib/prisma";
33

44
export default async function Home() {
5-
const users = await prisma.user.findMany();
6-
console.log(users);
5+
// Commented out to remove env error
6+
// const users = await prisma.user.findMany();
7+
// console.log(users);
78

89
return (
910
<main className="flex min-h-screen flex-col items-center justify-between p-24">

0 commit comments

Comments
 (0)