https://github.com/deemp/arigame
An arithmetics game written in PureScript using Halogen, SASS, and Bootstrap 5
https://github.com/deemp/arigame
Last synced: 3 months ago
JSON representation
An arithmetics game written in PureScript using Halogen, SASS, and Bootstrap 5
- Host: GitHub
- URL: https://github.com/deemp/arigame
- Owner: deemp
- License: apache-2.0
- Created: 2023-06-17T13:47:57.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-28T01:10:19.000Z (over 2 years ago)
- Last Synced: 2025-09-13T09:06:12.292Z (9 months ago)
- Language: PureScript
- Homepage: https://deemp.github.io/arigame/
- Size: 461 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Arigame
An arithmetics game written for my sisters.
## Play [here](https://deemp.github.io/arigame/)
## Development
1. Get development tools.
- [nodejs](https://nodejs.org/en), [purescript and spago](https://www.purescript.org/).
- Alternatively:
1. [Install Nix](https://github.com/deemp/flakes/blob/main/README/InstallNix.md) and `direnv`.
1. Enable `direnv` in this directory.
```console
direnv allow
```
1. Now, you should have a `devShell` with tools like `nodejs`, `purescript`, `dhall-lsp-server`, etc.
1. If using `VSCode`, install the `nwolverson.ide-purescript` extension.
1. Install dependencies.
```console
npm i
```
1. Run `SASS` converter in watch mode.
```console
npm run sass
```
1. Run `spago` in watch mode.
```console
spago build -w
```
- The `nwolverson.ide-purescript` extension for `VSCode` does this for you.
1. Run `parcel` in watch mode.
```console
npm run dev
```
- It will open a browser tab with the app running on port `1234`.
1. (Optionally) Run `localtunnel` to access your app on other devices.
```console
npx lt -p 1234 -s
```
- It will listen on port `1234`.
- The app will be available at `https://.loca.lt`.
- You can specify subdomain via the `-s` argument.
## References
- [Well-typed printfs cannot go wrong](https://blog.csongor.co.uk/purescript-safe-printf/)
- [purescript-barlow-lens](https://github.com/sigma-andex/purescript-barlow-lens)
- [Instance Chains](https://github.com/purescript/documentation/blob/master/language/Type-Classes.md)