Uses Vite to bundle and serve files.
To run this example, you need a Google Maps API key and a map id. You can either set an environment variable:
export GoogleMapsAPIKey=<google_maps_api_key>
export GoogleMapsMapId=<google_maps_map_id>
Or set the GOOGLE_MAPS_API_KEY
and GOOGLE_MAP_ID
variables in app.jsx
.
To install dependencies:
npm install
# or
yarn
Commands:
npm start
is the development target, to serve the app and hot reload.npm run build
is the production target, to create the final bundle and write to disk.