A simple Next.js example of displaying data fetched from an API, in this case from Supabase, and using MobX for state management. It also features some neat components that are all custom and written in plain CSS (CSS Modules) including forms and the use of mobx-react-form for validating those.
- Install dependencies:
pnpm i
- Create a file named
.env.local
and paste in the following:
NEXT_PUBLIC_SUPABASE_URL=YOUR_SUPABASE_URL
NEXT_PUBLIC_SUPABASE_ANON_KEY=YOUR_SUPABASE_ANON_KEY
- Start the dev server:
pnpm dev
- The project is available at http://localhost:3000
Vercel deployment link: