miserver 3.0 brian becker applications tools group, dyalog ltd
DESCRIPTION
MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD. Let's Talk About. Why? What? How? When? And then get into questions . What is a Web Server?. A program that listens for HTTP requests for “resources” from clients, which are typically web browsers. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/1.jpg)
MiServer 3.0Brian Becker
Applications Tools Group, Dyalog LTD
![Page 2: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/2.jpg)
• Why?• What?• How?• When?• And then get into questions
Let's Talk About...
![Page 3: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/3.jpg)
What is a Web Server?
• A program that listens for HTTP requests for “resources” from clients, which are typically web browsers.
• The server attempts to locate the resource (typically an HTML file) and send the contents to the client.
• If the resource is a “script”, execute it and generate “dynamic” output.
![Page 4: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/4.jpg)
MiServer in Use Today
• TryAPL• Dyalog'14 Conference Registration• Dyalog File Server Admin Console• DyaBot controller• Optima• Thor8.dk (PiServer)• Jerry Brennan• APLSmith.com
![Page 5: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/5.jpg)
MiServer 3.0 – Why?
• Because it's easy...– To provide your users access to your
application• All they need is a browser• Run from any operating system (that has a browser)• Run from any platform (that has a browser)
– Desktop, Laptop, Tablet, Phablet, Phone...
• No software or updates to distribute, download, or install
• Customers are always running the latest software– To build and deploy applications
• "Easy as ⎕WC"• Run server on any platform where Dyalog and Conga
run– Windows, Linux, AIX, others coming...
![Page 6: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/6.jpg)
Easy as ⎕WC? Let's see...
• Disclaimer:
I love ⎕WC
⎕WC
![Page 7: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/7.jpg)
Easy as ⎕WC? Let's see...
![Page 8: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/8.jpg)
Controls...
![Page 9: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/9.jpg)
Callbacks
![Page 10: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/10.jpg)
Layout of Controls
![Page 11: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/11.jpg)
Styling
• With ⎕WC/⎕WS– You set properties like FCol, BCol, etc'form' ⎕WS 'BCol' 124 244 255
• With MiServer– You use CSS stylesbody { background-color: cyan; }
![Page 12: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/12.jpg)
Available Resources
• With ⎕WC/⎕WS– 3rd party tools available: .NET, WPF– People who can help: look right and left
• With MiServer– 3rd party tools available: ≈ bazillion– People who can help: a lot
![Page 13: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/13.jpg)
Platforms
• With ⎕WC/⎕WS– Windows running locally
• With MiServer– Any platform with a web browser
• So basically, all of them – Still want to run locally?
• Embedded HTML5 rendering is coming
![Page 14: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/14.jpg)
Samples
• Demo time
![Page 15: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/15.jpg)
MiServer 3.0 – What?
• A framework of tools to make the generation of web content easy from APL– render HTML– use 3rd party "widgets"
• Syncfusion (70+ controls for web and mobile)• jQuery / jQueryUI / jQueryMobile• Others as user needs arise
• An open source, community, project– Soon to be available on GitHub
![Page 16: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/16.jpg)
MiServer Philosophy• "Anyone who can write an APL function should
be able to host it on the Web"• Provide a suite of tools to generate HTML and
JavaScript that cover most common use cases– Goal: Make it no more complex to develop rich user
interfaces than using ⎕WC - EAWC• Provide interface(s) to the full functionality of the
underlying technologies– Syncfusion, JavaScript, jQuery, jQueryUI, jQueryMobile
• Make the framework easy to modify and extend– APL extensions– Adding new plug-ins/widgets/libraries
![Page 17: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/17.jpg)
Need to Know?
• Dyalog APL– You need to be able to type::class MyPage : Template:access public
• A basic understanding of web pages• A bit of HTML* – basic elements /
concepts• A bit of CSS* – selectors and styling• Little to no JavaScript*
*Need to know increases with the sophistication of the application
![Page 18: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/18.jpg)
Giving MiServer a REST
• REST – REpresentational State Transfer– gained widespread acceptance across the Web
as a simpler alternative to SOAP-based Web services.• Facebook, Google, Twitter, US Government
– Uses standard HTTP commands and returns standard MIME types• GET – retrieve a resource• POST – update a resource• PUT – replace or insert a resource• DELETE – delete a resource
ful Web Interface
![Page 19: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/19.jpg)
REST Examples
• US Weather Servicehttp://graphical.weather.gov/xml/sample_products/browser_interface/ndfdBrowserClientByDay.php?zipCodeList=14586&format=24+hourly&numDays=1
• Google Mapshttp://maps.googleapis.com/maps/api/staticmap?center=Eastbourne,UK&size=600x300&zoom=15
![Page 20: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/20.jpg)
• Has a base URI • Returns a standard MIME type JSON, XML, images, • Collection http://example.com/cds/
• GET list of URIs of the collection's elements• PUT replace the entire collection• POST create a new collection entry• DELETE delete the entire collection
• Element http://example.com/cds/cd23 • GET retrieve a representation of the element• PUT replace or create an element• POST update the element• DELETE delete the element
RESTful Web Service
![Page 21: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/21.jpg)
MiServer 3.0 – When?
• Conference Version – now• GitHub – November 2014• Full Documentation – 1st Quarter
2015• Additional widgets – ongoing
![Page 22: MiServer 3.0 Brian Becker Applications Tools Group, Dyalog LTD](https://reader035.vdocuments.mx/reader035/viewer/2022062321/5681350c550346895d9c603b/html5/thumbnails/22.jpg)
QUESTIONS?