Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/instantiator/puzzle-matic
a general purpose puzzle app
https://github.com/instantiator/puzzle-matic
mui puzzles react webapp
Last synced: about 16 hours ago
JSON representation
a general purpose puzzle app
- Host: GitHub
- URL: https://github.com/instantiator/puzzle-matic
- Owner: instantiator
- Created: 2023-12-09T22:57:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-22T21:30:55.000Z (about 1 year ago)
- Last Synced: 2023-12-23T17:18:39.568Z (about 1 year ago)
- Topics: mui, puzzles, react, webapp
- Language: TypeScript
- Homepage: https://instantiator.dev
- Size: 6.91 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# puzzle-matic
Puzzle-matic is a general purpose puzzle app.
It is a React web application that's optimised for server side rendering.
The screen layout is heavily optimised for mobile dimensions. It's not tested or ready for desktop.
## Test, build, and deploy
| Script | Purpose |
|-|-|
| `run-dev.sh` | Serve a local instance of the app using NextJS |
| `build.sh` | Build a static release of the app in `puzzle-matic/out` |
| `run-build.sh` | Build a static release of the app and serve it with a static web server |Both `run-dev.sh` and `run-build.sh` serve the site at http://localhost:3000 by default.
You can host the static release from `puzzle-matic/out` with any static web server. ([GitHub pages](https://pages.github.com) is simple to use, for example.)
## Configuration
`src/app/page.tsx` includes a `GameProvider` which generates the context from the `src` file specified in its parameters.
```tsx
```
By default that's `game.json`, which is found in the `public` folder and contains a very simple sample game.
You can provide any url for the `src` parameter - and so you can host your game content alongside the application or elsewhere as you please.