Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jackdbd/re-frame-tic-tac-toe
Tic tac toe implemented as a re-frame app
https://github.com/jackdbd/re-frame-tic-tac-toe
clojurescript re-frame tic-tac-toe
Last synced: about 1 month ago
JSON representation
Tic tac toe implemented as a re-frame app
- Host: GitHub
- URL: https://github.com/jackdbd/re-frame-tic-tac-toe
- Owner: jackdbd
- Created: 2020-06-25T15:07:46.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-04T18:03:18.000Z (almost 2 years ago)
- Last Synced: 2024-10-24T14:33:27.975Z (3 months ago)
- Topics: clojurescript, re-frame, tic-tac-toe
- Language: Clojure
- Homepage: https://re-frame-tic-tac-toe.pages.dev/
- Size: 365 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# re-frame-tic-tac-toe
Tic tac toe implemented as a [re-frame](https://github.com/day8/re-frame) app.
Live at https://re-frame-tic-tac-toe.pages.dev/
## Installation
This project can be managed with [Babashka tasks](https://book.babashka.org/#tasks) defined in a `bb.edn` file. You can check the list of available tasks using this command:
```sh
bb tasks
```Install all dependencies:
```sh
bb install
```## Development
Compile the application in watch mode with shadow-cljs:
```sh
bb dev
```The command above will open browser tabs for:
- Re-frame app: http://localhost:8280/
- Shadown CLJS dashboard: http://localhost:9630/dashboardTip: you can compile any shadow-cljs build IDs directly from the browser, without typing anything in the terminal. Just visit http://localhost:9630/builds to do it.
## Build
Compile an optimized release build of the app:
```sh
npx shadow-cljs release app# or use this babashka task
bb app:release
```Run the app in your default browser:
```sh
xdg-open resources/public/index.html
```Generate a build report for the re-frame app:
```sh
npx shadow-cljs run shadow.cljs.build-report app target/build-report.html# or use this babashka task
bb app:release-report
```Inspect the build report in your default browser:
```sh
# linux
xdg-open target/build-report.html# macos
open target/build-report.html# windows
cmd /c start target/build-report.html
```## Tests
```sh
bb test:browser
``````sh
bb test:karma
npx karma start --config karma.conf.js --reporters verbose,dots
```## Deploy
Deploy the app to Cloudflare Pages:
```sh
bb app:deploy
# or
npx wrangler pages publish resources/public --project-name=$CLOUDFLARE_PAGES_PROJECT_ID
```## See also
https://github.com/mhuebert/shadow-re-frame