Created with Next.js with MUI
- Node >= 16.0.0
- Google OAuth credentials (ID and secret) in .env file
Clone this repo
Run:
cp .env.example .env.local
Add your google OAuth credentials to .env.local Then run:
yarn
yarn dev
You also need to generate secret for JWT and Session as mentioned in next-auth
To get started you can generate a random string
openssl rand -base64 32
The project uses Next.js, which is a framework for server-rendered React apps.
It includes @mui/material
and its peer dependencies, including emotion
, the default style engine in MUI v5.
If you prefer, you can use styled-components instead.
Next.js has a custom Link component. The example folder provides adapters for usage with MUI. More information in the documentation.