/nextjs-demo

It's a nextjs-demo for study

Primary LanguageTypeScript

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

Getting Started

First, run the development server:

  • npm install to install dependencies
  • npm run init to init the project. Include creating a database
  • npm run dev to 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 Inter, a custom Google Font.

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.

Create a Database

  • npx prisma init --datasource-provider sqlite
  • add a modle in the prisma/schema.prisma
  • npx prisma migrate dev

Not Default Library

  • npm i @nextui-org/react framer-motion
  • add import { nextui } from "nextui-org/react"; to the tailwind.config.ts file
  • npm install --save-exact @auth/core@0.18.1 @auth/prisma-adapter@1.0.6 next-auth@5.0.0-beta.3

npm packages:

  • axios: https request

Reference

"postinstall": "npm install prisma --save-dev && npx prisma generate && npx prisma migrate deploy && ls ./prisma",