Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions js-user-library/examples/hello/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Various IDEs and Editors
.vscode/
.idea/
**/*~

# Mac OSX temporary files
.DS_Store
**/.DS_Store

# Build artifacts
build/
canisters/
public/main.js
7 changes: 7 additions & 0 deletions js-user-library/examples/hello/README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
= hello

[source,sh]
$ cd js-user-library/examples/hello
$ nix-shell

This example does the minimum possible in terms of bundling to get things up and running. It does not intend to prescribe a recommended way of setting up a project in general.
20 changes: 20 additions & 0 deletions js-user-library/examples/hello/dfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": 1,
"dfx": "0.4.0",
"canisters": {
"hello": {
"main": "src/hello/main.mo",
"deployment_id": 1
}
},
"defaults": {
"build": {
"output": "canisters/"
},
"start": {
"port": 8000,
"address": "localhost",
"serve_root": "public/"
}
}
}
Loading