https://github.com/joshuaprince/minmap
π²π²πΊοΈ Interactive web map that displays crowdsourced information about North American casino Craps tables.
https://github.com/joshuaprince/minmap
casino craps-game gambling leaflet map react reddit typescript
Last synced: about 1 year ago
JSON representation
π²π²πΊοΈ Interactive web map that displays crowdsourced information about North American casino Craps tables.
- Host: GitHub
- URL: https://github.com/joshuaprince/minmap
- Owner: joshuaprince
- License: agpl-3.0
- Created: 2021-07-27T06:34:41.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-05-12T04:44:19.000Z (about 2 years ago)
- Last Synced: 2024-05-12T05:24:44.792Z (about 2 years ago)
- Topics: casino, craps-game, gambling, leaflet, map, react, reddit, typescript
- Language: TypeScript
- Homepage: https://crapsmap.vercel.app
- Size: 2.48 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Craps Table Minimum Map
π² [See the map live here!](https://crapsmap.vercel.app/) π²
Map of table minimums for Craps at casinos in the United States. Data is
scraped from [/r/Craps](https://www.reddit.com/r/Craps/)'
[Spreadsheet of Minimums](https://www.reddit.com/r/Craps/comments/oo2p7q/casino_minimums_covid_edition_part_8/) and plotted
in Leaflet.js, overlain on OpenStreetMap.


## Running Locally
1. Install dependencies: [Node.js](https://nodejs.org/en/download) >=18, [Yarn](https://classic.yarnpkg.com/en/docs/install#windows-stable) v1
2. `git clone https://github.com/joshuaprince/minmap.git`
3. `cd minmap && yarn install`
4. `yarn dev`
## Configuration
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`.
### Data Sources
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](https://console.cloud.google.com/apis/credentials) and generate an API key. |
## Contributing
Pull requests are welcome!