Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sincerelyfaust/vehicle-list-mobx-example

A simple example of displaying data from an API (Supabase) and using MobX for state management
https://github.com/sincerelyfaust/vehicle-list-mobx-example

api css css-modules fetch form javascript js mobx mobx-react-form mobx-react-lite nextjs node react supabase validatorjs

Last synced: 23 days ago
JSON representation

A simple example of displaying data from an API (Supabase) and using MobX for state management

Awesome Lists containing this project

README

        

# Vehicle list MobX example

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.

## Running the project

1. Install dependencies:
```bash
pnpm i
```
2. 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
```
3. Start the dev server:
```bash
pnpm dev
```
4. The project is available at http://localhost:3000

Vercel deployment link:

https://vehicle-list-mobx-example.vercel.app/