-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
127 lines (113 loc) · 4.18 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="Maxim Sokhatsky" />
<title>SAMPLE</title>
<link rel="stylesheet" href="https://n2o.dev/blank.css" />
<link rel="stylesheet" href="https://n2o.dev/zima.css" />
</head>
<body>
<nav>
<a href='https://n2o.dev/'>DEV</a>
<a href='https://sample.n2o.dev' style="background:#ededed;">SAMPLE</a>
<a href='https://sample-1.n2o.dev:8001/app/login.htm'>ADMIN</a>
</nav>
<header>
<a href="https://github.com/synrc/sample"><img src="https://sample.n2o.dev/priv/static/websocket.svg"></a>
<h1>SAMPLE WS</h1>
</header>
<aside>
<article>
<section>
<h3>SYNOPSIS</h3>
<div>SAMPLE WS is a simple WebSocket application with GPROC or SYN as a message bus.</div><br/>
</section>
<section>
<a name=plugin><h3>MANUAL</h3></a>
<div><ul>
<li><a href="man/sample.htm">SAMPLE</a></font></li>
<li><a href="man/index.htm">INDEX</a></font></li>
<li><a href="man/login.htm">LOGIN</a></font></li>
</ul></div>
<br>
<div>NOV 2021 © <a href="https://github.com/5HT">5HT</a> <a href="https://5ht.co/license.htm">ISC LICENSE</a></div>
</section>
</article>
</aside>
<main>
<section>
<a name=sample><h3>REBAR3</h3></a>
<figure>
<figcaption>Picture 1. OTP tools</figcaption>
<code>
$ git clone git://github.com/synrc/sample
$ cd sample
$ rebar3 shell
$ open https://127.0.0.1:8001/app/index.htm
</code></figure>
</section>
<section>
<a name=sample><h3>START</h3></a>
<figure>
<figcaption>Picture 2. Minimal Configuration</figcaption>
<code>
{deps, [{cowboy, ".*", {git, "git://github.com/voxoz/cowboy2", []}},
{nitro, ".*", {git, "git://github.com/synrc/nitro", []}},
{n2o, ".*", {git, "git://github.com/synrc/n2o", []}},
{kvs, ".*", {git, "git://github.com/synrc/kvs", []}},
{syn, ".*", {git, "git://github.com/ostinelli/syn", {tag,"2.1.1"}}}
]}.
</code>
</figure>
<figure>
<figcaption>Picture 3. Development Release</figcaption>
<code>
Eshell V10.1.1 (abort with ^G)
1> application:which_applications().
[{sample,"SAMPLE WebSocket application","0.7.0"},
{nitro,"NITRO HTML5 DSL","3.10"},
{syn,"A global Process Registry and Process Group manager.","2.1.1"},
{cowboy,"Small, fast, modern HTTP server.","2.8.0"},
{ranch,"Socket acceptor pool for TCP protocols.","1.7.1"},
{ssl,"Erlang/OTP SSL application","10.1"},
{public_key,"Public key infrastructure","1.9.1"},
{kvs,"KVS Abstract Chain Database","7.9.1"},
{cowlib,"Support library for manipulating Web protocols.","2.9.1"},
{crypto,"CRYPTO","4.8"},
{asn1,"The Erlang ASN1 compiler version 5.0.14","5.0.14"},
{n2o,"N2O MQTT TCP WebSocket","7.10.0"},
{inets,"INETS CXC 138 49","7.3"},
{mnesia,"MNESIA CXC 138 12","4.18"},
{syntax_tools,"Syntax tools","2.1.6"},
{compiler,"ERTS CXC 138 10","7.2.6"},
{stdlib,"ERTS CXC 138 10","3.13.2"},
{kernel,"ERTS CXC 138 10","7.1"}]
</code>
</figure>
</section>
<section>
<a name=sample><h3>Sample Application</h3></a>
<figure>
<figcaption>Picture 3. N2O Review Application</figcaption>
<img src="https://n2o.dev/img/n2o-ws.png">
</figure>
</section>
<section>
<a name=plugin><h3>Related Documents</h3></a>
<div>
<ul>
<li><a href="https://n2o.dev/articles/n2o.htm">N2O: PROTOCOL</a></li>
<li><a href="https://n2o.dev/articles/web.htm">N2O: SERVER</a></li>
<li><a href="https://n2o.dev/articles/history.htm">N2O: HISTORY</a></li>
<li><a href="https://n2o.dev/articles/pb.htm">N2O: PRIVATBANK</a></li>
</ul></div>
</section>
</main>
<footer>
Made with <span class="heart">❤</span> to N2O
</footer>
</body>
</html>