Skip to content

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open 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.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

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 설정 방법은 다음과 같습니다:

  1. MongoDB 설치 가이드를 참고하여 MongoDB를 설치합니다.
  2. .env.local 파일에 MongoDB 연결 문자열을 설정합니다:
    DATABASE_URL="mongodb://localhost:27017/bankloan"
    
  3. Prisma 클라이언트를 생성합니다:
    npx prisma generate
  4. 애플리케이션을 실행합니다:
    npm run dev

MongoDB 복제 세트 설정 (트랜잭션 사용 시 필요)

Prisma에서 트랜잭션을 사용하려면 MongoDB가 복제 세트로 실행되어야 합니다. 자세한 설정 방법은 MongoDB 복제 세트 설정 가이드를 참고하세요.

PostgreSQL에서 MongoDB로 데이터 마이그레이션

기존 PostgreSQL 데이터베이스에서 MongoDB로 데이터를 마이그레이션하려면:

  1. .env.local 파일에 PostgreSQL 연결 문자열을 추가합니다:
    PG_DATABASE_URL="postgresql://username:password@localhost:5432/bankloan"
    
  2. 마이그레이션 스크립트를 실행합니다:
    npm run migrate-to-mongodb

About

Mobile banking loan system

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages