Skip to content

Commit

Permalink
Merge pull request #2 from Holo-Host/update-hdk-146
Browse files Browse the repository at this point in the history
Update to use hdk 146
  • Loading branch information
zippy authored Aug 19, 2022
2 parents 9a6b583 + 123e34a commit 7f5bd9e
Show file tree
Hide file tree
Showing 22 changed files with 1,626 additions and 620 deletions.
1,356 changes: 1,201 additions & 155 deletions Cargo.lock

Large diffs are not rendered by default.

23 changes: 19 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# TalkingSticies
# TalkingStickies

A [syn](https://github.com/holochain/syn) sample app for collaborative sticky-notes!
A holochain hApp for collaborative sticky-note boards. Use it to run your retrospectives or group brainstorming sessions!

This is UI is built using [Svelte](https://svelte.dev) from the [standard template for Svelte apps](https://github.com/sveltejs/template).
Real-time colloaboration delivered by [syn](https://github.com/holochain/syn). Inspired by [Ideaboards](https://ideaboardz.com)

## Environment Setup
## Install

1. Install and run the [Holochain Launcher](https://github.com/holochain/launcher/releases)
2. Go to [https://github.com/Holo-Host/talking-stickies/releases] and download the *webapp* file under assets
3. In the Holochain Launcher click *Install New App* and *Select From Filesystem* and then choose the *webapp* file you downloaded.
4. Enjoy!

## Dev Environment Setup

1. Install the holochain dev environment (only nix-shell is required): https://developer.holochain.org/docs/install/
2. Enable Holochain cachix with:
Expand All @@ -30,3 +37,11 @@ npm install
```

2. Navigate to [localhost:5000](http://localhost:5000) in your browser. You should see the UI running.


## Releasing (manual)

### For Launcher

`npm run package`
the `*.webhapp` file will be available in the `/workdir` folder.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let
holonixPath = (import ./nix/sources.nix).holonix; # points to the current state of the Holochain repository
holonix = import (holonixPath) {
holochainVersionId = "v0_0_143"; # specifies the Holochain version
holochainVersionId = "v0_0_154"; # specifies the Holochain version
};
nixpkgs = holonix.pkgs;
in nixpkgs.mkShell {
Expand Down
19 changes: 14 additions & 5 deletions dna/workdir/dna/dna.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
---
manifest_version: "1"
name: talking-stickies
uid: 00000000-0000-0000-0000-000000000002
properties: ~
zomes:
- name: syn
bundled: ../../../target/wasm32-unknown-unknown/release/syn.wasm

integrity:
uid: 00000000-0000-0000-0000-000000000000
properties: ~
zomes:
- name: syn_integrity
bundled: ../../../target/wasm32-unknown-unknown/release/syn_integrity.wasm

coordinator:
zomes:
- name: syn
bundled: ../../../target/wasm32-unknown-unknown/release/syn.wasm
dependencies:
- name: syn_integrity
4 changes: 2 additions & 2 deletions dna/zomes/syn/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ crate-type = ["cdylib", "rlib"]
name = "syn"

[dependencies]
chrono = {version = "0.4", features = ["serde"]}
chrono = { version = "0.4.22", default-features = false, features = ["clock", "std", "oldtime", "serde"], optional = true }
derive_more = "0"
serde = "1"

hc_zome_syn = {git = "https://github.com/holochain/syn", rev = "for-hdk-v0.0.136"}
hc_zome_syn_coordinator = {git = "https://github.com/holochain/syn", branch = "for-hdk-v0.0.146"}
2 changes: 1 addition & 1 deletion dna/zomes/syn/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
extern crate hc_zome_syn;
extern crate hc_zome_syn_coordinator;
15 changes: 15 additions & 0 deletions dna/zomes/syn_integrity/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
edition = "2018"
name = "syn_integrity"
version = "0.0.1"

[lib]
crate-type = ["cdylib", "rlib"]
name = "syn_integrity"

[dependencies]
chrono = { version = "0.4.22", default-features = false, features = ["clock", "std", "oldtime", "serde"], optional = true }
derive_more = "0"
serde = "1"

hc_zome_syn_integrity = {git = "https://github.com/holochain/syn", branch = "for-hdk-v0.0.146"}
1 change: 1 addition & 0 deletions dna/zomes/syn_integrity/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extern crate hc_zome_syn_integrity;
6 changes: 3 additions & 3 deletions nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"homepage": "",
"owner": "holochain",
"repo": "holonix",
"rev": "c112c9513d44d04da2d722efb6902a3f7fb7ea05",
"sha256": "07mifxdhpx87baas25ywg9nblkbhfngl4frjbxm50dhvq8p5q83i",
"rev": "7a3072c2afd70e3d4ed802863c42b9f14cfac054",
"sha256": "18fd3j44hqdwmcrxxybh97q9wzq0692fvss1d865r11lnd8zkbbj",
"type": "tarball",
"url": "https://github.com/holochain/holonix/archive/c112c9513d44d04da2d722efb6902a3f7fb7ea05.tar.gz",
"url": "https://github.com/holochain/holonix/archive/7a3072c2afd70e3d4ed802863c42b9f14cfac054.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}
}
Loading

0 comments on commit 7f5bd9e

Please sign in to comment.