【问题标题】:Front-end : html/css+javascript, Backend : perl前端:html/css+javascript,后端:perl
【发布时间】:2015-02-26 07:16:24
【问题描述】:
想创建一个Web应用程序(使用html/css + javascript)登录到基于linux的存储设备,处理存储设备的一些日志(使用perl) em> 并将结果返回给 Web 应用程序。
什么/如何用作它们之间的连接器?哪一个最简单?
【问题讨论】:
-
这个问题是题外话,因为它是“主要基于意见的”,很可能会被删除。不过看看Dancer
标签:
javascript
perl
frontend
backend
【解决方案1】:
现在不太推荐使用 CGI。 Read this.
正如@Borodin 已经说过的那样,这里有很多可能性(而且它们确实基于意见)。我会使用:
Poet - 作为一个非常棒的框架,使用 Mason 模板、内置配置系统、缓存、日志记录 - 完全基于 Moose。缺点是 - 用户群非常小,您可能永远不会得到任何关于诗人/梅森问题的答案。
Mojolicious - 另一个不错的网络框架,许多插件,活跃用户。
也许您的需求有所不同 - 请查看https://metacpan.org/。
对于如何部分 - 快速指南:
#install your own perl - don't pollute he system's perl with new modules
\curl -kL http://install.perlbrew.pl | bash
#follow the instructions add line to .profile and
source ~/.profile
perlbrew install perl-5.20.1
#coffe break
perlbrew switch perl-5.20.1
perlbrew install-cpanm
#install the framework and all dependecies
cpanm Poet
#time for the tea ;)
#generate your skeleton app and start the server
poet new MyAppName
myappname/bin/run.pl
您可以将http://0:5000 连接到您的工作网络应用程序并开始开发。