This is purely for demonstration purposes only.
- node v10+
- cardano-cli
- cardano-address
- create new folder
-module(dtls_client). | |
-export([connect/1]). | |
psk_verify(Username, UserState) -> | |
io:format("Server Hint: ~p~n", [Username]), | |
{ok, UserState}. | |
connect(Port) -> | |
[application:start(X) || X <- [crypto, asn1, public_key, ssl]], |
npm install -g jspm@beta
jspm init
jspm install angular2 reflect-metadata zone.js es6-shim
This will create a jspm_packages
folder, and a config.js
file.
Open the config.js
file - this file manages options for the System.js loader - tweak it as appropriate
// A very light-weight templating function | |
// Use <% ... %> to embed code, <%= ... %> to output expressions. | |
// | |
// Caveat: because the parser makes no attempts at interpreting | |
// any `<%` and `%>` inside code blocks, so if you need | |
// metatemplating, you need to escape those sequences | |
// just like '<scr'+'ipt>' in script tags. | |
// | |
// See examples of usage below. | |
function template(str, params) { |