This repository was archived by the owner on Nov 14, 2019. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathtsuginode.php
More file actions
291 lines (263 loc) · 10.6 KB
/
Copy pathtsuginode.php
File metadata and controls
291 lines (263 loc) · 10.6 KB
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
<link rel="shortcut icon" href="images/favicon.ico"/>
<title>Service Detail – Building & Construction HTML Theme</title>
<link rel='stylesheet' href='css/bootstrap.min.css' type='text/css' media='all' />
<link rel='stylesheet' href='css/font-awesome.min.css' type='text/css' media='all'/>
<link rel='stylesheet' href='css/prettyPhoto.css' type='text/css' media='all' />
<link rel='stylesheet' href='css/owl.carousel.css' type='text/css' media='all' />
<link rel='stylesheet' href='css/style.css' type='text/css' media='all' />
<link rel='stylesheet' href='css/custom.css' type='text/css' media='all' />
<link rel='stylesheet' href='css/preloader.css' type='text/css' media='all' />
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic,800,800italic' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Raleway:400,100,200,300,500,600,700,800,900' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Droid+Serif:400,700' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900' rel='stylesheet' type='text/css'>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="header01">
<div id="loading">
<div id="loading-center">
<div id="loading-center-absolute">
<div class="loader">Loading...</div>
</div>
</div>
</div>
<div class="snap-drawers">
<div class="snap-drawer snap-drawer-left">
<div class="mobile-menu">
<ul class="menu">
<li>
<a href="./">Home</a>
<ul class="sub-menu">
<li><a href="./">Home 01</a></li>
<li><a href="index-2.html">Home 02</a></li>
<li><a href="index-3.html">Home 03</a></li>
</ul>
</li>
<li>
<a href="#">Headers</a>
<ul class="sub-menu">
<li><a href="header-1.html">Header Style 01</a></li>
<li><a href="header-2.html">Header Style 02</a></li>
<li><a href="header-3.html">Header Style 03</a></li>
<li><a href="header-4.html">Header Style 04</a></li>
<li><a href="header-5.html">Header Style 05</a></li>
<li><a href="header-6.html">Header Style 06</a></li>
<li><a href="header-7.html">Header Style 07</a></li>
<li><a href="header-8.html">Header Style 08</a></li>
<li><a href="header-9.html">Header Style 09</a></li>
<li><a href="header-10.html">Header Style 10</a></li>
</ul>
</li>
<li>
<a href="services.html">Services</a>
<ul class="sub-menu">
<li><a href="service-detail.html">Service type 1</a></li>
<li><a href="service-detail-2.html">Service type 2</a></li>
<li><a href="service-detail-3.html">Service type 3</a></li>
</ul>
</li>
<li>
<a href="projects.html">Projects</a>
<ul class="sub-menu">
<li><a href="projects-fullscreen.html">Project fullscreen</a></li>
<li><a href="projects-3-col.html">Project 3 Columns</a></li>
<li><a href="projects-4-col.html">Project 4 Columns</a></li>
<li><a href="project-type-1.html">Project type 1</a></li>
<li><a href="project-type-2.html">Project type 2</a></li>
<li><a href="project-type-3.html">Project type 3</a></li>
</ul>
</li>
<li>
<a href="about-us.html">About Us</a>
<ul class="sub-menu">
<li><a href="about-us.html">Our Company</a></li>
<li><a href="our-history.html">Our History</a></li>
<li><a href="affiliates-partners.html">Affiliates & Partners</a></li>
<li><a href="awards.html">Awards</a></li>
<li><a href="core-values.html">Core Values</a></li>
<li><a href="leadership.html">Leadership</a></li>
</ul>
</li>
<li>
<a href="news.html">News</a>
<ul class="sub-menu">
<li><a href="news.html">Blog Style</a></li>
<li><a href="grid.html">Grid Style</a></li>
<li><a href="mixed.html">Mixed Style</a></li>
<li><a href="blog-detail.html">Single News</a></li>
</ul>
</li>
<li>
<a href="shop.html">Shop</a>
<ul class="sub-menu">
<li><a href="shop-detail.html">Single Product</a></li>
<li><a href="cart.html">Cart</a></li>
<li><a href="cart-empty.html">Empty Cart</a></li>
<li><a href="wishlist.html">Wishlist</a></li>
</ul>
</li>
<li>
<a href="job-search.html">Career</a>
<ul class="sub-menu">
<li><a href="job-search.html">Job Search</a></li>
<li><a href="mentor-programs.html">Mentor Programs</a></li>
<li><a href="internship-programs.html">Internship Programs</a></li>
<li><a href="benefits.html">Benefits</a></li>
</ul>
</li>
<li>
<a href="contact.html">Contact</a>
<ul class="sub-menu">
<li><a href="contact.html">Contact 1</a></li>
<li><a href="contact-2.html">Contact 2</a></li>
<li><a href="contact-3.html">Contact 3</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="snap-drawer snap-drawer-right"></div>
</div>
<div id="page" class="site">
<div class="top-area site-top hidden-xs hidden-sm">
<div class="container">
<div class="row middle">
<div class="col-md-6">
A Framework for Building Learning Tools
</div>
<div class="col-md-6 text-right">
<div class="top-menu">
<ul id="top-menu" class="menu">
<li class="menu-item"><a href="contact-2.html">Contact</a></li>
</ul>
</div>
<div class="social-menu">
<ul id="social-menu-top" class="menu">
<!--<li><a href="https://facebook.com">Facebook</a></li>-->
<li><a href="https://plus.google.com/+ChuckSeverance/">Google Plus</a></li>
<li><a href="https://twitter.com/drchuck">Twitter</a></li>
<!--<li><a href="http://vimeo.com">Vimeo</a></li>-->
<li><a href="https://www.youtube.com/playlist?list=PLlRFEj9H3Oj5WZUjVjTJVBN18ozYSWMhw">Youtube</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<header class="site-header">
<nav id="site-navigation" class="main-navigation">
<div class="top-search">
<div class="container">
<div class="row middle">
<div class="col-md-12">
<form>
<input type="search" name="s" placeholder="What are you looking for?"/>
</form>
</div>
</div>
</div>
</div>
<?php include 'header.php'; ?>
</nav>
<!-- #site-navigation -->
</header>
<div class="site-content">
<div class="big-title">
<div class="container">
<h1 class="entry-title">Platforms</h1>
<div class="breadcrumb">
<div class="container">
<ul class="tm_bread_crumb">
<li class="top"><a href="./">Home</a></li>
<li class="sub tail current">Platforms</li>
</ul>
</div>
</div>
</div>
</div>
<div class="main">
<div class="container">
<div class="row">
<div class="col-md-4 col-sm-12">
<div class="sidebar">
<div class="widget better-menu-widget">
<?php include 'platforms-side-nav.php'?>
</div>
<div class="widget">
<div class="widget">
<div class="services-brochure">
<span><i class="fa fa-github"></i></span><a href="https://github.com/csev/tsugi-php-standalone/blob/master/README.md">View in GitHub</a>
</div>
<div class="services-consultation">
</div>
</div>
<div class="services-consultation">
</div>
</div>
</div>
</div>
<div class="col-md-8 col-sm-12">
<div class="our_services_heading3 mb-2">
<div>Tsugi Node</div>
</div>
<div class="mb-2">
<p>
Sample Tsugi Application For Node
Under Contstruction: This is just emerging test code to explore how to approach a Tsugi (www.tsugi.org) implementation for Node. For now the application and emergent Tsugi library code will all be in this sample application repo. As the Tsugi library code becomes more of a real library, the code will be refactored so the Tsugi Node library can be distributed through npm.
Installation
Check the code out and do
npm install
Starting Node
I prefer to run this under nodemon so it auto resets when files are changed.
npm install nodemon -g
Start the application as:
nodemon app.js
Testing LTI
Go to https://online.dr-chuck.com/sakai-api-test/lms.php
Put in http://localhost:3000/lti as the launch URL
Launch the code - watching the node Console - it should be like this:
SUCCESS
Then change the secret to "secretx and launch again - you should sess this in the log:
FAIL:Error: Invalid Signature
Updating when tsugi-node is changed in github
npm update</p>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include 'footer.php'; ?>
<div class="copyright">
<div class="container">
<div class="row middle">
<div class="col-md-12 end-md end-lg center">
© Copyrights 2016 Tsugi, Inc. All rights reserved.
</div>
</div>
</div>
</div>
</div>
<a class="scrollup"><i class="fa fa-angle-up"></i></a>
<script type='text/javascript' src='js/jquery.min.js'></script>
<script type='text/javascript' src='js/jquery-migrate.min.js'></script>
<script type='text/javascript' src='js/bootstrap.min.js'></script>
<script type='text/javascript' src='js/snap.min.js'></script>
<script type='text/javascript' src='js/owl.carousel.min.js'></script>
<script type='text/javascript' src='js/jquery.prettyPhoto.js'></script>
<script type='text/javascript' src='js/jquery.prettyPhoto.init.min.js'></script>
<script type='text/javascript' src='js/jQuery.headroom.min.js'></script>
<script type='text/javascript' src='js/headroom.min.js'></script>
<script type='text/javascript' src='js/script.js'></script>
</body>
</html>