https://github.com/xtdb/templates
`deps-new` templates to create an XTDB 2.x playground
https://github.com/xtdb/templates
bitemporal clojure juxt xtdb
Last synced: 5 months ago
JSON representation
`deps-new` templates to create an XTDB 2.x playground
- Host: GitHub
- URL: https://github.com/xtdb/templates
- Owner: xtdb
- License: mit
- Created: 2023-04-25T12:52:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-25T13:44:39.000Z (almost 3 years ago)
- Last Synced: 2024-11-08T17:33:20.720Z (about 1 year ago)
- Topics: bitemporal, clojure, juxt, xtdb
- Language: Clojure
- Homepage: https://xtdb.com/v2
- Size: 6.84 KB
- Stars: 4
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# XTDB playground templates
This is a repo containing [deps-new](https://github.com/seancorfield/deps-new) templates to create an XTDB 2.x playground.
## Usage
Assuming you have installed `deps-new` as your `new` "tool" via:
```bash
clojure -Ttools install io.github.seancorfield/deps-new '{:git/tag "v0.5.1"}' :as new
```
* To create an in-process node playground, run:
``` shell
clojure -Sdeps '{:deps {io.github.xtdb/templates {:git/sha "7153b6fbf7a7dd52cdc44330eff3f7947a8bbdef"}}}' -Tnew create :template xtdb/node-playground :name my-xtdb-playground
```
* To create a thin-client playground, run:
``` shell
clojure -Sdeps '{:deps {io.github.xtdb/templates {:git/sha "7153b6fbf7a7dd52cdc44330eff3f7947a8bbdef"}}}' -Tnew create :template xtdb/client-playground :name my-xtdb-playground
```
If you don't already have an XTDB 2.x instance running, you can start one with Docker:
```shell
docker pull ghcr.io/xtdb/xtdb-ea
docker run -tip 3000:3000 ghcr.io/xtdb/xtdb-ea
```
Then, `cd my-xtdb-playground`, and follow the instructions in your new README!
For more information and documentation on XTDB 2.x, head to https://xtdb.com/v2.
## License
Copyright © 2023 JUXT Ltd
Distributed under the MIT License