Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/green-labs/electric-projects
- Owner: green-labs
- Created: 2023-04-10T06:52:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-07T23:21:10.000Z (over 1 year ago)
- Last Synced: 2024-04-23T02:20:16.772Z (8 months ago)
- Language: Clojure
- Size: 14.6 KB
- Stars: 10
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# electric-project
```
$ yarn
$ clj -A:dev -X user/mainStarting 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
```