Skip to content

Web application using Next.js, prisma, next-auth, react-hook-form, yup and material-ui

Notifications You must be signed in to change notification settings

shinoburc/nextjs-mui-template

Repository files navigation

Getting Started

Proxy Settings

PowerShell

$env:http_proxy="http://proxy.occ.co.jp:8080"
$env:https_proxy="http://proxy.occ.co.jp:8080"

Bash

export http_proxy="http://proxy.occ.co.jp:8080"
export https_proxy="http://proxy.occ.co.jp:8080"

clone and run

git clone git@github.com:shinoburc/nextjs-mui-template.git
cd nextjs-mui-template
npm install
npx prisma migrate dev --name init
npm run dev

Open http://localhost:3000 with your browser to see the result.

DB関連の更新を行った場合

schema.prisma に model を追加・変更等した場合は 以下を実行して DB と prisma-client が生成する型を更新する。

<マイグレーションに名前を付ける> は任意の名前を付ける。

npx prisma migrate dev --name <マイグレーションに名前を付ける>
npx prisma generate

About

Web application using Next.js, prisma, next-auth, react-hook-form, yup and material-ui

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published