Learning build · 2022
React Meetups
A meetup CRUD prototype on React and React Router, with Firebase as a tiny JSON database and a favourites list kept in context.
- Role
- Front-end
- Stack
- ReactReact RouterFirebase Realtime DBCSS Modules
- Live
- react-meetup-rosy.vercel.app
- Source
- GitHub

01What the build involved
01
Three routes, one layout
All meetups, new meetup and favourites share a Layout with a navigation bar that carries the count, and each component owns a CSS module rather than reaching into a global stylesheet. It is the smallest app in this portfolio, and the one that made routing click: the URL is the state, and a page that can be linked to is a page that can be refreshed.
02
Firebase as a JSON box
Instead of pulling in the Firebase SDK, the app calls the Realtime Database’s REST endpoint for meetups.json — a GET that returns an object keyed by id, and a POST when a meetup is added. Mapping that object into an array with the key folded in as id is done in one place, and the list refetches when it mounts, so a new meetup is on screen without any cache to invalidate.
03
Favourites without a store
Favourites live in a context: add, remove, check and a total, consumed by the nav badge and the cards. No Redux, no persistence, no accounts — refresh the page and the list is empty again. That was the point of the exercise, and the honest limit of it: a context is a fine place for a list you can afford to lose.
02What it left behind
Outcome
A small, complete CRUD app live at react-meetup-rosy.vercel.app: list, add, favourite, with Firebase called as a plain REST endpoint and CSS modules per component. It is the project where routing and shared state clicked, in the smallest frame that could hold them.
Another pass
Favourites that vanish on refresh were the point of the exercise, and also the first thing a visitor tries to keep — I would persist them in localStorage and leave the context as the API in front. Fetching the list on every mount would become one cached request, invalidated by the POST that adds a meetup.
03Inside the product
Click any screenshot to view it full size