https://github.com/floatplane/elementsweeper
Minesweeper + Stripe Elements. A minesweeper game you can't lose, if you've got money.
https://github.com/floatplane/elementsweeper
Last synced: 7 days ago
JSON representation
Minesweeper + Stripe Elements. A minesweeper game you can't lose, if you've got money.
- Host: GitHub
- URL: https://github.com/floatplane/elementsweeper
- Owner: floatplane
- License: mit
- Created: 2020-11-13T21:48:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-11T19:01:16.000Z (over 5 years ago)
- Last Synced: 2025-09-12T10:42:40.882Z (9 months ago)
- Language: JavaScript
- Size: 652 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Elementsweeper
Elementsweeper = Minesweeper + Stripe Elements
Plays like Minesweeper, but if you click on a bomb you can buy your way out of trouble. Perhaps a metaphor for life.
## Setup
Create a .env file with the following values:
```
PORT=3000
STRIPE_API_KEY=your_Stripe_secret_key
SESSION_SECRET=some_random_string
```
To run on Glitch, you shouldn't need to do anything else.
To run locally:
1. `npm install` to get the packages
1. `npm run dev` to launch the dev server on http://localhost:3000 (or whatever port you specify in .env)
1. `npm run watch` to rebuild your JS bundle on changes
## Notes
- this is a test mode app, you can't spend real money
- your purchase is stored in a session cookie, so if you clear cookies you'll lose your lives
- stored credit cards / Payment Request button doesn't work in Chrome/Edge because you can only store live cards, and you can't make testmode purchases with them