Criollo 基于 Cocoa 的 Web 框架开源项目

我要开发同款
诺克萨斯2016年03月19日
195阅读

技术信息

开源地址
https://github.com/thecatalinstan/Criollo
授权协议
MIT

作品详情

Criollo是一款基于Cocoa的Web框架,用于OSX和iOS系统。

Cocoa有助于创建非常快速独立的web应用程序,这些程序直接通过HTTP或FastCGI提供内容。你可以用Objective-C或者Swift语言编写代码。同时你也可以用你自己知道或者喜欢的:GradCetralDispatch,NSURLSessio,CoreImage甚至更多。

就像这样很容易:

CRServer* server = [[CRHTTPServer alloc] iit];[server addBlock:^(CRRequest * request, CRRespose * respose, CRRouteCompletioBlock completioHadler) {[respose sed:@"Hello world!"];} forPath:@"/"];[server startListeig];

用Swift

let server:CRServer = CRHTTPServer()server.addBlock({ (request, respose, completioHadler) -> Void irespose.sed("Hello world!")}, forPath: "/")server.startListeig()

入门

DowloadCriolloadtryouttheicludedOSXadiOSexampleapps.CriollorequiresCocoaAsycSocket,sodootforgettodowloadititoLibraries/CocoaAsycSocket.

Readthe“GettigStarted”guideadmovefurtherwiththe“DoigMoreStuff”guide

CheckoutthedocumetatioforalookattheAPIsavailable

LearhowtodeployyourCriolloappsithe“Deploymet”guide

安装

安装CocoaPods

CreatethePodfileifyoudo’talreadyhaveoe.Youcadosobyruigpodiitithefolderoftheproject.

AddCriollotoyourPodfile.pod'Criollo','~>0.1’

Rupodistall

复制repo

git cloe --recursive https://github.com/thecatalista/Criollo.git

功能介绍

Criollo 是一款基于 Cocoa 的 Web 框架,用于 OS X 和 iOS 系统。 Cocoa有助于创建非常快速独立的web应用程序,这些程序直接通过HTTP或FastCGI提供内容。...

示例图片

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论