This is a Next.js project bootstrapped with create-next-app
.
1.Clone the repo and install dependencies npm i
.
-
Create a
.env
file in your project root and add:DATABASE_URL="mysql://url-to-your-database.com
-
Initialize submodules:
git submodule init
thengit submodule update
-
Generate prisma types:
npx prisma generate --schema submodules/database/prisma/schema.prisma
-
Push database schema to database server:
npx prisma generate --schema submodules/database/prisma/schema.prisma
-
run the development server:
npm run dev
Open http://localhost:80 with your browser to see the result.