Skip to content

Commit aaf34ce

Browse files
committedDec 28, 2023
add prisma and remove boilerplate
1 parent a5a733e commit aaf34ce

16 files changed

+103
-454
lines changed
 

‎.env

-14
This file was deleted.

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env

‎docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ services:
1515
volumes:
1616
- ./db:/app
1717
ports:
18-
- "3000:3000"
18+
- "${HOST_ADDRESS}:3306"

‎webApp/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ yarn-error.log*
2727

2828
# local env files
2929
.env*.local
30+
.env
3031

3132
# vercel
3233
.vercel

‎webApp/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
"@emotion/styled": "^11.11.0",
1515
"@mui/material": "^5.15.2",
1616
"@mui/material-nextjs": "^5.15.0",
17+
"@prisma/client": "^5.7.1",
1718
"next": "14.0.4",
19+
"prisma": "^5.7.1",
1820
"react": "^18",
1921
"react-dom": "^18"
2022
},
@@ -25,5 +27,8 @@
2527
"eslint": "^8",
2628
"eslint-config-next": "14.0.4",
2729
"typescript": "^5"
30+
},
31+
"prisma": {
32+
"schema": "src/lib/prisma/schema.prisma"
2833
}
2934
}

‎webApp/public/next.svg

-1
This file was deleted.

‎webApp/public/vercel.svg

-1
This file was deleted.

‎webApp/src/app/favicon.ico

-25.3 KB
Binary file not shown.

‎webApp/src/app/globals.css

-107
This file was deleted.

‎webApp/src/app/layout.tsx

+13-10
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1-
import type { Metadata } from 'next'
2-
import { Inter } from 'next/font/google'
3-
import './globals.css'
1+
import type { Metadata } from "next";
2+
import { Inter } from "next/font/google";
3+
import { AppRouterCacheProvider } from "@mui/material-nextjs/v14-appRouter";
44

5-
const inter = Inter({ subsets: ['latin'] })
5+
const inter = Inter({ subsets: ["latin"] });
66

77
export const metadata: Metadata = {
8-
title: 'Create Next App',
9-
description: 'Generated by create next app',
8+
title: 'JOSHUAAAS APPP',
9+
description: 'We gon use this to track expenses',
1010
}
1111

12-
export default function RootLayout({
12+
export default async function RootLayout({
1313
children,
1414
}: {
15-
children: React.ReactNode
15+
children: React.ReactNode;
1616
}) {
17+
1718
return (
1819
<html lang="en">
19-
<body className={inter.className}>{children}</body>
20+
<body className={inter.className}>
21+
<AppRouterCacheProvider>{children}</AppRouterCacheProvider>
22+
</body>
2023
</html>
21-
)
24+
);
2225
}

0 commit comments

Comments
 (0)