Skip to content

hugonascimento/nextjs-supabase-mui-protected-route-template

Repository files navigation

Template Next.js App Router

With Material UI, Theme color mode, Supabase and Protected router

Created with

pnpm dlx create-next-app template-nextjs

Packages

# Prettier
pnpm add prettier -D
# EsLint with Prettier
pnpm add eslint-config-prettier -D
# Material UI
pnpm add @mui/material @emotion/react @emotion/styled @mui/icons-material @mui/material-nextjs @emotion/cache
# supabase
pnpm add @supabase/auth-ui-react @supabase/ssr @supabase/supabase-js
# Keeping Server-only Code out of the Client Environment
pnpm add server-only

pnpm install is used to install all dependencies for a project.

pnpm i

Requirements

Login enabled with Google only (edit if necessary).
Edit .env.local-example with your Supabase Key.
You need the profile table in supabase for page profile.

First, run the development server:

pnpm dev

Build for production and launch server

pnpm build
pnpm start

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published