Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
Remove WIP fiddles and files from main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ggeoffrey committed Dec 20, 2023
1 parent 05afa42 commit d62c224
Show file tree
Hide file tree
Showing 68 changed files with 43 additions and 4,015 deletions.
81 changes: 0 additions & 81 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ One day when your app will have grown and you’ll be ready to eject it, you’l
You can fork this repo or clone it and have your own branch.
We’ll continue to update the main branch. You’ll be able to track changes and merge them as needed.

<!-- Here is electric fiddle this is how we fiddle around with stuff at work.
All our demos are here. This is how we recommend you start It’s self contained
You’ll fork this repo or clone it and have your own branch. We’ll continue to
update the main branch and you’ll be able to track changes and merge them into
your app if you need it. -->

<!-- Live app: <https://dustingetz.electricfiddle.net/> -->

## Quick Start

```shell
Expand Down Expand Up @@ -139,76 +131,3 @@ $ clojure -X:build:prod uberjar :hyperfiddle/domain hello-fiddle :build/jar-name
$ fly deploy --remote-only --config src/hello_fiddle/fly.toml
```

<!-- Triage / for reference
```shell
$ clojure -X:build:prod:electric-tutorial build-client :hyperfiddle/domain electric-tutorial :debug true
$ clojure -X:build:prod:hfql_demo build-client :hyperfiddle/domain hfql-demo :debug true
$ clojure -X:build:prod:dustingetz build-client :hyperfiddle/domain dustingetz :debug true
# http://localhost:8080/electric-fiddle.essay!Essay/electric-y-combinator
$ fly deploy --remote-only --config src/hello_fiddle/fly.toml
$ clojure -X:build build-client :verbose true
$ clojure -X:build uberjar :build/jar-name "app.jar" :verbose true
```
* note, build uses -X not -T, build/app classpath contamination cannot reasonably be prevented. see https://www.notion.so/hyperfiddle/logger-epic-303a8024a8fd4b09a40a67871d3161cf?pvs=4
```shell
docker login
docker ps
docker build -t hyperfiddle/photon-demo .
docker run -dP hyperfiddle/photon-demo
docker run -it hyperfiddle/photon-demo bash
docker push hyperfiddle/photon-demo:latest
docker build --platform linux/amd64 -t hyperfiddle/photon-demo .
docker buildx build --platform linux/amd64,linux/arm64 -t hyperfiddle/photon-demo .
# https://hub.docker.com/_/clojure
# Apple Silicon requires --platform linux/amd64
brew install flyctl
fly auth signup
fly auth login
fly launch # project wizard, then go to https://fly.io/dashboard/personal
fly deploy --build-only # test remotely to workaround Apple Silicon docker issues
fly status
fly regions list
flyctl regions add cdg
fly platform vm-sizes
fly scale show
fly scale vm shared-cpu-4x
fly scale count 1 --region ewr
fly scale count 1 --region cdg
fly scale count 4 --max-per-region 1
#https://community.fly.io/t/how-to-specify-regions-to-run-in/3048
fly deploy
https://fly.io/docs/about/pricing/
https://fly.io/docs/apps/scale-machine/
https://community.fly.io/t/how-to-specify-regions-to-run-in/3048
cost = $41/mo for dedicated-cpu-1x, 4GB ram -- https://fly.io/docs/about/pricing/
# DNS
fly ips list
fly ips allocate-v4
# configure DNS A and AAAA records
fly certs create "*.electricfiddle.net" # quote * to avoid shell expansion
fly certs list
fly certs check "*.electricfiddle.net"
fly certs show "*.electricfiddle.net"
https://dustingetz.electricfiddle.net/
https://www.electricfiddle.net/
https://electricfiddle.net/
# Github actions
fly tokens create deploy
# https://github.com/hyperfiddle/electric-fiddle/settings/secrets/actions/
npx jamsocket create photon-demo
npx jamsocket service create photon-demo
npx jamsocket push photon-demo hyperfiddle/photon-demo:latest
npx jamsocket spawn photon-demo
```
-->
105 changes: 43 additions & 62 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -1,77 +1,58 @@
{:paths ["src" "resources" "src-fiddles"]
:deps
{com.hyperfiddle/electric {:git/url "https://github.com/hyperfiddle/electric/"
:git/sha "0a6966891c1b009fb808add868b72c8d37268296"}
com.hyperfiddle/rcf {:git/url "https://github.com/hyperfiddle/electric"
:git/sha "7105b43231140de6f2f39ce38611c9f6c9dfc976"}
info.sunng/ring-jetty9-adapter
{:mvn/version "0.17.7" ; (Jetty 10) is NOT Java 8 compatible
:exclusions [org.slf4j/slf4j-api info.sunng/ring-jetty9-adapter-http3]}
org.clojure/clojure {:mvn/version "1.12.0-alpha4"}
org.clojure/clojurescript {:mvn/version "1.11.60"} ; technically :dev
org.clojure/tools.logging {:mvn/version "1.2.4"}
ch.qos.logback/logback-classic {:mvn/version "1.2.11"}
ring-basic-authentication/ring-basic-authentication {:mvn/version "1.1.1"}

markdown-clj/markdown-clj {:mvn/version "1.11.4"}
nextjournal/clojure-mode {:git/url "https://github.com/nextjournal/clojure-mode"
:sha "ac038ebf6e5da09dd2b8a31609e9ff4a65e36852"}}

:aliases
{:deps {com.hyperfiddle/electric {:git/url "https://github.com/hyperfiddle/electric/" :git/sha "0a6966891c1b009fb808add868b72c8d37268296"}
com.hyperfiddle/rcf {:git/url "https://github.com/hyperfiddle/electric" :git/sha "7105b43231140de6f2f39ce38611c9f6c9dfc976"}
org.clojure/clojure {:mvn/version "1.12.0-alpha4"}
org.clojure/clojurescript {:mvn/version "1.11.60"} ; technically :dev
org.clojure/tools.logging {:mvn/version "1.2.4"}
ch.qos.logback/logback-classic {:mvn/version "1.2.11"}
info.sunng/ring-jetty9-adapter {:mvn/version "0.17.7" ; (Jetty 10) is NOT Java 8 compatible
:exclusions [org.slf4j/slf4j-api info.sunng/ring-jetty9-adapter-http3]}
ring-basic-authentication/ring-basic-authentication {:mvn/version "1.1.1"}
}

:paths ["src" "resources" "src-fiddles"]

:aliases
{:dev
{:extra-paths ["src-dev" "src-triage"]
:override-deps
{com.hyperfiddle/electric {:local/root "vendor/electric"}
com.hyperfiddle/rcf {:local/root "vendor/rcf"}}
:extra-deps
{binaryage/devtools {:mvn/version "1.0.6"}
io.github.clojure/tools.build
{:mvn/version "0.9.5"
:exclusions [com.google.guava/guava ; https://clojurians.slack.com/archives/C6N245JGG/p1692799642324169
org.slf4j/slf4j-nop #_"clashes with app logger"]}
thheller/shadow-cljs {:mvn/version "2.25.2"}}
:jvm-opts
["-XX:-OmitStackTraceInFastThrow" #_RCF
]}
{:extra-paths ["src-dev"]
:override-deps {com.hyperfiddle/electric {:local/root "vendor/electric"}
com.hyperfiddle/rcf {:local/root "vendor/rcf"}}
:extra-deps {binaryage/devtools {:mvn/version "1.0.6"}
thheller/shadow-cljs {:mvn/version "2.25.2"}
io.github.clojure/tools.build
{:mvn/version "0.9.5"
:exclusions [com.google.guava/guava ; Guava version conflict between tools.build and clojurescript.
org.slf4j/slf4j-nop ; clashes with app logger
]}}
:jvm-opts ["-XX:-OmitStackTraceInFastThrow" ; For RCF
]}

:build
; use `clj -X:build build-client`, NOT -T! build/app classpath contamination cannot be prevented
; see https://www.notion.so/hyperfiddle/logger-epic-303a8024a8fd4b09a40a67871d3161cf?pvs=4
;; use `clj -X:build build-client`, NOT -T! build/app classpath contamination cannot be prevented
{:extra-paths ["src-build"]
:ns-default build
:extra-deps {io.github.clojure/tools.build
{:mvn/version "0.9.5"
:exclusions [com.google.guava/guava ; https://clojurians.slack.com/archives/C6N245JGG/p1692799642324169
org.slf4j/slf4j-nop #_"clashes with app logger"]}
thheller/shadow-cljs {:mvn/version "2.25.2"}}
}
:ns-default build
:extra-deps
{thheller/shadow-cljs {:mvn/version "2.25.2"}
io.github.clojure/tools.build {:mvn/version "0.9.5"
:exclusions [com.google.guava/guava ; Guava version conflict between tools.build and clojurescript.
org.slf4j/slf4j-nop ; clashes with app logger
]}}}

:prod
{:extra-paths ["src-prod"]}


;;;;;;;;;;;;;;;;;;;;
;; Fiddle Aliases ;;
;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Fiddle Aliases ;;
;; Add your custom extra deps and configurations below ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

:hello-fiddle {}

:electric-tutorial
{:extra-deps
{datascript/datascript {:mvn/version "1.5.2"}
reagent/reagent {:mvn/version "1.1.1"}}}

:datomic-browser
{:extra-deps
{com.datomic/peer {:mvn/version "1.0.7075"}}}

:dustingetz
{:extra-deps
{com.datomic/peer {:mvn/version "1.0.7075"}
com.hyperfiddle/hfql {:local/root "vendor/hfql"}}}
{datascript/datascript {:mvn/version "1.5.2"}
reagent/reagent {:mvn/version "1.1.1"}
markdown-clj/markdown-clj {:mvn/version "1.11.4"}
nextjournal/clojure-mode {:git/url "https://github.com/nextjournal/clojure-mode" :git/sha "ac038ebf6e5da09dd2b8a31609e9ff4a65e36852"}}}

:hfql-demo
{:extra-paths ["src-triage"]
:extra-deps
{com.datomic/peer {:mvn/version "1.0.7075"}
com.hyperfiddle/hfql {:local/root "vendor/hfql"}}}}}
}}
1 change: 0 additions & 1 deletion resources/public/hyperfiddle/hfql-tree-grid.css

This file was deleted.

51 changes: 0 additions & 51 deletions resources/public/hyperfiddle/hyperfiddle-electric-ui-copy.css

This file was deleted.

Loading

0 comments on commit d62c224

Please sign in to comment.