Map of table minimums for Craps at casinos in the United States. Data is scraped from /r/Craps' Spreadsheet of Minimums and plotted in Leaflet.js, overlain on OpenStreetMap.
- Install dependencies: Node.js >=18, Yarn v1
git clone https://github.com/joshuaprince/minmap.git
cd minmap && yarn install
yarn dev
The map is configured through environment variables. Copy .env.example
to .env.local
and make changes to configure the
data source, link targets, etc. Documentation for environment variables is in .env.example
.
The default configuration fetches map data from a static JSON file in this repository. To load map data from a Google Sheet, populate the following environment variables:
Environment Variable | Source |
---|---|
SHEET_ID_MINS |
URL of a Google sheet. This should be the long string of characters after /d/ in the URL. |
SHEETS_API_KEY |
Make an account on Google Cloud and generate an API key. |
Pull requests are welcome!