holochain / docs-pages Goto Github PK
View Code? Open in Web Editor NEWThe hosted static files for the Holochain developer documentation
Home Page: https://developer.holochain.org
License: GNU General Public License v3.0
The hosted static files for the Holochain developer documentation
Home Page: https://developer.holochain.org
License: GNU General Public License v3.0
Page URL: https://developer.holochain.org/docs/concepts/5_linking_data_together/
Page URL: https://developer.holochain.org/docs/concepts/3_private_data/
I'm opening this issue to investigate getting nix-shell to work on catalina. So far I can't find a working solution. It's not working for @dhtnetwork
seems recommendable to me, simplifies the work over here
Page URL: http://developer.holochain.org/docs/get-involved/
cc: @Klayemore
do this wherever someone is installing something.
Bonus: create an issue template
Page URL: http://developer.holochain.org/docs/tutorials/coreconcepts/hello_me/
Running into some strange compile errors while trying to follow on with this tutorial
And code:
#![feature(proc_macro_hygiene)]
#[macro_use]
extern crate hdk;
extern crate hdk_proc_macros;
extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
#[macro_use]
extern crate holochain_json_derive;
use hdk::holochain_core_types::{dna::entry_types::Sharing, entry::Entry};
use hdk::holochain_json_api::{error::JsonError, json::JsonString};
use hdk::{entry_definition::ValidatingEntryType, error::ZomeApiResult};
use hdk::holochain_persistence_api::{cas::content::Address};
use hdk_proc_macros::zome;
// see https://developer.holochain.org/api/latest/hdk/ for info on using the hdk library
#[derive(Serialize, Deserialize, Debug, DefaultJson, Clone)]
pub struct Person {
name: String,
}
#[zome]
mod hello_zome {
#[init]
fn init() {
Ok(())
}
#[validate_agent]
pub fn validate_agent(validation_data: EntryValidationData<AgentId>) {
Ok(())
}
#[zome_fn("hc_public")]
fn hello_holo() -> ZomeApiResult<String> {
Ok("Hello Holo".into())
}
#[entry_def]
fn person_entry_def() -> ValidatingEntryType {
entry!(
name: "person",
description: "Person to say hello to",
sharing: Sharing::Private,
validation_package: || {
hdk::ValidationPackageDefinition::Entry
},
validation: | _validation_data: hdk::EntryValidationData<Person> {
Ok(())
}
)
}
#[zome_fn("hc_public")]
pub fn create_person(person: Person) -> ZomeApiResult<Address> {
let entry = Entry::App("person".into(), person.into());
let address = hdk::commit_entry(&entry)?
Ok(address)
}
}
https://developer.holochain.org/start.html - under heading: "Permanently install holochain tools (optional)"
As the holochain team releases new versions this creates breaking changes, during the devcamps we will choose to stick to a specific version of holochain and hc and would like this the ability to install specific versions via nix-env
N/A
Can we modify the holochain install documentation to what is suggested in the image below?
Page URL: http://developer.holochain.org/docs/tutorials/coreconcepts/hello_gui/
When you say:
python -m SimpleHTTPServer
Or if you use Python 3, use this command instead:
python -m http.server
I think you can safely remove the python 2 recommendation because it is now deprecated.
https://developer.holochain.org/guide/latest/first_steps.html#adding-some-entries
Take note of the native_type field of the macro which gives which Rust struct represents the entry type.
(see source)
The example above this line does not contain any native_type
field, so I'm very confused and not sure what I should take note of.
Probably the code code updated and not the text or vis-versa?
maybe to the github repo too, in case anyone wants to submit PRs
Page URL: http://developer.holochain.org/docs/guide/conductor_networking/
CTRL+F "Must be one of the following: 't', 'd', 'i', 'w', 'e' Each value"
->
This must be one of the following: 't', 'd', 'i', 'w', 'e'. Each value
n3h docs look like they could be improved, but that is too general a suggestion to create an issue for.
Page URL: http://developer.holochain.org/docs/install/
After running the script in Linux, it says:
"Installation finished! To ensure that the necessary environment
variables are set, either log in again, or type
~/.nix-profile/etc/profile.d/nix.sh"
However, nix.sh in this location is not an executable.. the script should chmod +x nix.sh first. And presumably the daemon version also in that directory.
Page URL: http://developer.holochain.org/docs/guide/bridging/
that allows a synchronous bidirectional transfer
should be asynchronous
Page URL: http://developer.holochain.org/docs/install/
Note that if you will be running nix-shell https://holochain.love
frequently, you may wish to set an alias, e.g. as instructed on this page.
Note that if you will be running `nix-shell https://holochain.love` frequently, you may wish to set an alias, e.g. as instructed on [this page](https://www.hostingadvice.com/how-to/set-command-aliases-linuxubuntudebian/).
Page URL: http://developer.holochain.org/docs/concepts/6_modifying_and_deleting_data/
Hi! The fourth heading, "simulating immutability", should be "simulating mutability".
Page URL: http://developer.holochain.org/docs/tutorials/coreconcepts/hello_me/
Suggest changing the python invokation line from
python -m SimpleHTTPServer
to
python -m SimpleHTTPServer
Or if you use Python 3, use this command instead:
python -m http.server
(this is what you have in one of the other tutorials and works)
also, to address issues with installing zmq; here's what I did that worked:
Doing this created a error when running "hc --version" in cmd that said, "libzmq-v140-mt-4_2_0.dll not found" This file is found in the above reference directory in the "bin" folder.
So, I moved libzmq-v140-mt-4_2_0.dll to the same folder where hc.exe lives --> and huzzah! It now works.
Things I don't know:
Page URL: http://developer.holochain.org/docs/install/
As per holochain/holochain-rust#1760, this page needs a couple of updates IMO.
Firstly, on my computer with Manjaro Linux, I need to pipe curl https://nixos.org/nix/install
with a shell command, otherwise it doesn't work (see the above issue for details). E.g., as I use zsh by default, I ran curl https://nixos.org/nix/install | zsh
, other common ones would be piped with bash
or sh
.
Secondly, I got:
[jr@lm ~]$ nix-env --versioncopy
error: no operation specified
[jr@lm ~]$ nix-env --version
nix-env (Nix) 2.3.1
So LTM like it needs to be updated to nix-env --version
.
Page URL: http://developer.holochain.org/docs/tutorials/coreconcepts/hello_holo/
Each "run in nix-shell" prompt is really "nix-shell https://holochain.love" (or remind devs to set up a default.nix in the directory).
Work around is to add:
. $HOME/.nix-profile/etc/profile.d/nix.sh
to ~/.zshrc
.
Page URL: http://developer.holochain.org/docs/tutorials/coreconcepts/hello_me/
Oops - in the UI section the "Check your code" for hello.js bears almost no relationship to the code you had us type in above - there are a bunch of different functions, and even what is there has some changed syntax.
Has anyone tested the tutorials - I keep finding bugs in them ....
Page URL: http://developer.holochain.org/docs/tutorials/coreconcepts/hello_gui/
In the section Run a simple server, the command
python -m SimpleHTTPServer
is not valid anymore (it will cause the error 'No module named SimpleHTTPServer').
This command should be replaced by:
python -m http.server
Page URL: http://developer.holochain.org/docs/tutorials/coreconcepts/hello_holo/
There is an issue compiling with 'hc package' in the 'Generate a Zome' section.
The config.toml file errors.
I found it works when I update the dependencies like this:
[dependencies]
serde = "=1.0.89"
serde_json = { version = "=1.0.39", features = ["preserve_order"] }
serde_derive = "=1.0.89"
hdk = { git = "https://github.com/holochain/holochain-rust", tag = "v0.0.34-alpha1" }
holochain_wasm_utils = { git = "https://github.com/holochain/holochain-rust", tag = "v0.0.34-alpha1" }
holochain_json_derive = "=0.0.17"
Page URL: http://developer.holochain.org/docs/tutorials/coreconcepts/hello_world/
Which port should sim2h run on - consistently the "Check your code" examples are showing sim2h_url: 'wss://0.0.0.0:9001',
and the page descriptions are saying sim2h_server -p 9000
Am I right in assuming this is a typo (examples seem to fail unless this is aligned), and if so which is correct ?
In the developer hdk docs, the upper left link to the top level of the docs is broken: It should be something like https://developer.holochain.org/api/latest/hdk but instead points to https://developer.holochain.org/api/latest/index.html.
Step 3 here: https://developer.holochain.org/start.html
You may have to restart terminal to be able to run that command.
Jimmy, [20 Jan 2019 19:28:50]:
...just dropped into the MatterMost chat, so we'll see there. Basically did the hc-rust todo list tutorial, got it running on a websocket server, but every call I make to it aside from "info/instances" returns "Method not found". I'm doing "app/zome/method" format calls.
and I was curious if any webhook RPC calls are documented anywhere aside from info/instances.
All the doc pages regarding frontend interfaces are blank
Though I know it's early in the process. I just assume they haven't been written yet.
Very early in the process myself, but so far it's not bad. It somewhat stinks that they changed to Rust/WebAssembly recently and invalidated most of the existing tutorials/sample apps in the process, but I understand the move, and ultimately it'll provide greater flexibility in the future. So I'm simultaneously having to learn Rust compared to other widely used languages. Though I think the design of the HC and the use of sharded DHTs and app specific crypto chains is a very cool concept.
Page URL: http://developer.holochain.org/docs/tutorials/coreconcepts/hello_me/
Test code says
sim2h_url: 'wss://0.0.0.0:9001',
But the server is run on 9000
sim2h_server -p 9000
Holochain.org home page
Change Request: Update links from Holochain proto to Holochain rust on the Holochain.org home page.
From Jimmy. He is doing a review on Holochain.
"hmmm, any intention of updating the website? The JavaScript/Lisp section doesn't really apply anymore"
Page URL: http://developer.holochain.org/docs/tutorials/coreconcepts/hello_test/
Remove the following section:
orchestrator.registerScenario("description of example test", async (s, t) => { const {alice, bob} = await s.players({alice: conductorConfig, bob: conductorConfig}) // Make a call to a Zome function // indicating the function, and passing it an input const addr = await alice.call("myInstanceName", "my_zome", "create_my_entry", {"entry" : {"content":"sample content"}}) // Wait for all network activity to await s.consistency() const result = await alice.call("myInstanceName", "my_zome", "get_my_entry", {"address": addr.Ok}) // check for equality of the actual and expected results t.deepEqual(result, { Ok: { App: [ 'my_entry', '{"content":"sample content"}' ] } }) })
This section mismatches what I've arrived to so far!
My code says this:
orchestrator.registerScenario('Test hello holo', async (s, t) => { const {alice, bob} = await s.players({alice: config, bob: config}, true); const result = await alice.call('cc_tuts', 'hello', 'hello_holo', {}); t.ok(result.Ok); t.deepEqual(result, { Ok: 'Hello Holo' })
Page URL: http://developer.holochain.org/docs/install/
First instruction: curl https://nixos.org/nix/install
should really be: curl https://nixos.org/nix/install | sh
as per the NixOS website.
Steps to reproduce:
I am redirected to a new GitHub issue with a template like so:
Expected/desired behaviour: to be redirected like on the previous site to be able to edit the source code for the page directly. This is particularly helpful for minor edits, which are not expected to need discussion.
Page URL: http://developer.holochain.org/docs/tutorials/coreconcepts/hello_me/
This block looks wrong to me ...
function hello() {
holochain_connection.then(({callZome, close}) => {
callZome('test-instance', 'hello', 'hello_holo')({args: {}}).then(result =>
- show_output(result),
+ show_output(result, id),
);
});
}
shouldn't id
be output
which is what the element to hold the output of the Hello call is called?
Page URL: http://developer.holochain.org/docs/tutorials/coreconcepts/hello_me/
The Check your Code box after the definition of show_person
is also wrong (seperate box from the error reported in #154
Specifically - the show_output in the code constructed line by line is ...
function show_output(result, id) {
var el = document.getElementById(id);
var output = JSON.parse(result);
el.textContent = ' ' + output.Ok;
}
But in the "Check your code box" its
// Render functions
function show_output(result, id) {
var el = document.getElementById(id);
var output = JSON.parse(result);
if (output.Ok) {
el.textContent = ' ' + output.Ok;
} else {
alert(output.Err.Internal);
}
}
With extra error checking ...
Page URL: http://developer.holochain.org/docs/install/
After the curl command (the next command) requires an update to the environment. The command line says this can be done by running ~/.nix-profile/etc/profile.d/nix.sh, except after the install this file needs to be chmod +x first. And this doesn't do it; you need to force the exports, the simplest way is to logout and log in again.
Page URL: http://developer.holochain.org/docs/tutorials/coreconcepts/
Change to:
Welcome to the Core Concepts Tutorial Series. This is a set of tutorials that will take you through what you need to know to start building Holochain applications. They are designed to demonstrate the content of each Core Concept Article. The tutorials are progressive, so itβs best to complete them in order.
Start your journey with Hello Holo.
Page URL: http://developer.holochain.org/docs/install/
when running hc --version
I am receiving hc 0.0.34-alpha1
Request:
Page: developer.holochain.org
Add: Mattermost at the top before or after Blog?
Link: Mattermost: https://chat.holochain.net/appsup/channels/app-dev
Add Telegram: http://t.me/channelHolo
Add Reddit: https://www.reddit.com/r/holochain/
Page URL: http://developer.holochain.org/docs/tutorials/coreconcepts/hello_me/
Using the code from the latter hello.js Check-your-code
In Firefox, the result of
var address = document.getElementById('address_in').value;
is
" Address: QmaijZvaP2BKj5r14KLTaB2yF4V1hukkSg7cJG6nLtNFSL"
While in Chrome its
"QmaijZvaP2BKj5r14KLTaB2yF4V1hukkSg7cJG6nLtNFSL"
In Firefox it of course fails to retrieve that, while Chrome works fine.
I don't understand why Firefox behaves like this ... as the DOM looks like
<div>Address: <span id="address_output"> QmaijZvaP2BKj5r14KLTaB2yF4V1hukkSg7cJG6nLtNFSL</span></div>
But its 100% repeatable and will leave you to debug it ....
Page URL: http://developer.holochain.org/docs/tutorials/coreconcepts/hello_holo/
It's probably a better practice to create directory and file names without spaces.
It's an always good to frequently compile your app. -> It's always good to frequently compile your app.
Page URL: http://developer.holochain.org/docs/tutorials/coreconcepts/hello_me/
Think the initial diff for the refactored hello() function should change from
- show_output(result),
+ show_output(result, id),
to
- show_output(result),
+ show_output(result, 'output'),
The final code block for hello.js has it correct
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.