This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
이 프로젝트는 MongoDB를 데이터베이스로 사용합니다. MongoDB 설정 방법은 다음과 같습니다:
- MongoDB 설치 가이드를 참고하여 MongoDB를 설치합니다.
.env.local파일에 MongoDB 연결 문자열을 설정합니다:DATABASE_URL="mongodb://localhost:27017/bankloan"- Prisma 클라이언트를 생성합니다:
npx prisma generate
- 애플리케이션을 실행합니다:
npm run dev
Prisma에서 트랜잭션을 사용하려면 MongoDB가 복제 세트로 실행되어야 합니다. 자세한 설정 방법은 MongoDB 복제 세트 설정 가이드를 참고하세요.
기존 PostgreSQL 데이터베이스에서 MongoDB로 데이터를 마이그레이션하려면:
.env.local파일에 PostgreSQL 연결 문자열을 추가합니다:PG_DATABASE_URL="postgresql://username:password@localhost:5432/bankloan"- 마이그레이션 스크립트를 실행합니다:
npm run migrate-to-mongodb