Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/green-labs/electric-projects

projects run by electric
https://github.com/green-labs/electric-projects

Last synced: about 1 month ago
JSON representation

projects run by electric

Awesome Lists containing this project

README

        

# electric-project

```
$ yarn
$ clj -A:dev -X user/main

Starting Electric compiler and server...
shadow-cljs - server version: 2.20.1 running at http://localhost:9630
shadow-cljs - nREPL server started on port 9001
[:app] Configuring build.
[:app] Compiling ...
[:app] Build completed. (224 files, 0 compiled, 0 warnings, 1.93s)

👉 App server available at http://0.0.0.0:8080
```

# Deployment

```
$ export ACCESS_TOKEN_SECRET=...
$ yarn
$ clojure -X:build build-client # optimized release build
$ clojure -X:build uberjar # contains demos and demo server, currently
```

## Docker
```
$ docker build --build-arg VERSION=$(git describe --tags --long --always --dirty) -t electric-project .
$ docker run -e ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET} --rm -p 8080:8080 electric-project
```