Ekperimen integrasi mapbox dengan NATs
Referensi: https://www.youtube.com/watch?v=As5FojxWViI
- Mapbox
- Nats
- Vite
- React
- Install NATS cli and NATS server
- Clone this repo
git clone https://github.com/nekoding/mapbox-nats.git
- Install dependency using bun / npm / pnpm
bun install
- Run Nats Server
nats-server -c nats.conf
-
Change MAPBOX API Key in
App.jsx
-
Run web app
bun run dev
- Setup jetstream (optional)
nats s add [name] --no-deny-purge --allow-rollup
# Make sure the subject name is set to `maps.*` so jetstream can catch all subject from map