https://github.com/damesek/minime-oz-shadow-example
Vega/ Vega-lite example with Shadow-cljs and Reagent (extract from OZ)
https://github.com/damesek/minime-oz-shadow-example
Last synced: 12 months ago
JSON representation
Vega/ Vega-lite example with Shadow-cljs and Reagent (extract from OZ)
- Host: GitHub
- URL: https://github.com/damesek/minime-oz-shadow-example
- Owner: damesek
- License: mit
- Created: 2019-10-14T09:15:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-16T14:44:42.000Z (over 6 years ago)
- Last Synced: 2023-09-12T10:42:15.631Z (almost 3 years ago)
- Language: Clojure
- Homepage: https://github.com/damesek/minime-oz-shadow-example
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# I created a mini Vega lib for shadow-cljs projects
https://github.com/damesek/vega-charts-shadow-cljs
`[org.clojars.baader/vega-charts "0.3.0"]`
# MiniMe example of reagent + shadow-cljs + "Oz" setup
I had issues to integrate to a large project the OZ lib (dependecy conflicts.. I can't solve).
Therefore I extracted the important part of the code. It might be useful for others too..
I modified for this example the https://github.com/ivanminutillo/reagent-shadow-oz-example code.
1. No issues with CLJSJS dependencies
2. Works with any versions of Vega
3. Few lines (Shadow-cljs)
Don't forget: Specification of schema need to be same version of your added node npm package (eg. v3.4 > 3.4.0).
```... :$schema "https://vega.github.io/schema/vega-lite/v3.4.json" ... ```
## Usage
Clone the demo
```
git clone https://github.com/damesek/minime-oz-shadow-example.git
```
Enter the project and install the needed dependencies
```
cd minime-oz-shadow-example && yarn install
```
Start the app
```
shadow-cljs watch app
```
Visit http://localhost:3000