Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/groundedsage/repro-electric-datahike-transact-bug


https://github.com/groundedsage/repro-electric-datahike-transact-bug

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Electric v3 Starter App

## Instructions

Dev build:

* Shell: `clj -A:dev -X dev/-main`, or repl: `(dev/-main)`
* authentication instructions will be printed
* App will start on http://localhost:8080
* Electric root function: [src/electric_starter_app/main.cljc](src/electric_starter_app/main.cljc)
* Hot code reloading works: edit -> save -> see app reload in browser

```shell
# Prod build
clj -X:build:prod build-client
clj -M:prod -m prod

# Uberjar (optional)
clj -X:build:prod uberjar :build/jar-name "app.jar"
java -cp target/app.jar clojure.main -m prod

# Docker
docker build -t electric3-starter-app:latest .
docker run --rm -it -p 8080:8080 electric3-starter-app:latest

```
- fly.io deployment: [fly.toml](fly.toml)
- github actions + fly: [.github/workflows/deploy.yml](.github/workflows/deploy.yml)