어떤 스칼라 웹 프레임 워크를 사용할 수 있습니까? [닫은]
방금 Scala를 배우기 시작했으며 가장 먼저 구현할 것은 작은 웹 응용 프로그램입니다. 작년에 Erlang 을 사용하여 서버 측 소프트웨어를 구현해 왔지만 이전에는 웹 응용 프로그램을 작성한 적이 없습니다. 좋은 경험이 될 것입니다.
Scala에 Lift를 제외한 웹 프레임 워크가 있습니까?
틀리지 마, 리프트는 멋져 보여 프레임 워크가 몇 개인 지 알고 싶어서 프레임 워크 중에서 선택할 수 있습니다. 항상 선택하는 것이 좋지만 내가 찾은 유일한 것은 Lift였습니다.
나는 Scala에 매우 관심이 있지만 아직 그것을 사용하지 않았으므로 그 경고와 함께 HRJ의 답변 (Lift, Sweet, Slinky)에 언급되지 않은 프레임 워크 는 다음과 같습니다.
나는 이것에 관한 블로그 게시물을 썼다 .
요약하면 일부 옵션은 다음과 같습니다.
나는 마침내 나에게 적합한 것이 없다는 것을 알았고, 내 작은 "프레임 워크"를 개발했다. (아직 오픈 소스가 아닙니다).
나는 리프트를 좋아한다 ;-)
Play는 스칼라 친화적 인 웹 프레임 워크에 대한 두 번째 선택입니다.
Wicket은 나의 세 번째 선택입니다.
다음은 프레임 워크 덤프입니다. 내가 실제로 사용한 것은 아닙니다.
Coeus . 스칼라를위한 전통적인 MVC 웹 프레임 워크.
필터링되지 않았습니다 . 스칼라에서 HTTP 요청을 서비스하기위한 툴킷.
아모레 . Ruby 웹 프레임 워크 Sinatra의 스칼라 포트
XML을 확장 합니다. XML 처리에 대한 유연한 접근 방식과 XML과의 간단한 상호 작용 방식.
벨트 . Scalaz-HTTP 위에 구축 된 웹 애플리케이션을위한 랙형 인터페이스
MixedBits . 웹 사이트 구축을 돕는 Scala 프로그램 언어 프레임 워크
곡절 . Scala 프로그래밍 언어를 사용하여 응용 프로그램 개발을 위해 여러 개의 독립적 인 오픈 소스 프로젝트를 통합합니다.
스칼라 웹 머신 . 웹 애플리케이션 구축을위한 REST 기반 시스템 인 Scala에있는 Port of Basho의 웹 머신
볼러 . RESTful, 다중 채널 지원 스칼라 웹 프레임 워크
Scala도 지원하는 Play Framework를 사용해보십시오 .
상업적 배포가 가능한 매우 흥미로운 웹 프레임 워크는 Ruby의 Sinatra에서 영감을받은 Scalatra 입니다. 여기에 관한 InfoQ 기사 가 있습니다.
Unfiltered는 매우 흥미로운 https://github.com/unfiltered/unfiltered를 찾습니다 .
IttayD의 목록에 언급되어 있습니다.
여기에 http://unfiltered.lessis.me/#0 및 비디오 http://code.technically.us/post/942531598/doug-tangren-presents-the-unfiltered-toolkit-for에 대한 프레젠테이션이 있습니다 .
또한 여기에 자세한 정보가있는 기사가 있습니다 http://code.technically.us/post/998251172/holding-the-parameter
Wicket 과 Scala 에도 상당한 관심이있다 . Wicket은 스칼라와 놀랍도록 잘 맞습니다. 매우 성숙한 Wicket 프로젝트와 그 생태계 (확장자)와 Scala의 간결한 구문 및 생산성 이점을 활용하려면이 것이 당신을위한 것일 수 있습니다!
또한보십시오:
놀이 는 꽤 달콤합니다.
이제 생산 준비가되었습니다. 멋진 템플릿 프레임 워크, 안전 할 때 소스 파일을 자동으로 다시로드, 컴포저 블 액션 시스템, akka awesomeness 등이 포함됩니다.
Typesafe 스택 의 일부입니다 .
두 가지 프로젝트에 사용하면 꽤 원활하게 작동하며 다음에 새로운 웹 프레임 워크를 배울 때 고려해야 할 사항이라고 말할 수 있습니다.
나는 Jersey 를 사용하여 JAX-RS를 사용하는 경향이 있습니다 (Scala, Java 또는 Groovy에서 멋진 리소스 bean을 작성할 수 있음). RESTul 웹 응용 프로그램을 작성하십시오. 그런 다음 다양한 템플릿 언어 ( JADE , Scaml , Ssp (Scala Server Pages), Mustache 등) 중 하나를 사용하여 뷰를 렌더링하는 데 Scalate 를 사용 합니다.
Scala Web Pages 라는 새로운 웹 프레임 워크가 있습니다 . 사이트에서 :
대상 고객
The Scala Pages web framework is likely to appeal to web programmers who come from a Java background and want to program web applications in Scala. The emphasis is on OOP rather than functional programming.
Characteristics And Features
- Adheres to model-view-controller paradigm
- Text-based template engine
- Simple syntax:
$variable
and<?scp-instruction?>
- Encoding/content detection, able to handle international text encodings
- Snippets instead of custom tags
- URL Rewriting
Prikrutil, I think we're on the same boat. I also come to Scala from Erlang. I like Nitrogen a lot so I decided to created a Scala web framework inspired by it.
Take a look at Xitrum. Its doc is quite extensive. From README:
Xitrum is an async and clustered Scala web framework and web server on top of Netty and Hazelcast:
- It fills the gap between Scalatra and Lift: more powerful than Scalatra and easier to use than Lift. You can easily create both RESTful APIs and postbacks. Xitrum is controller-first like Scalatra, not view-first like Lift.
- Annotation is used for URL routes, in the spirit of JAX-RS. You don't have to declare all routes in a single place.
- Typesafe, in the spirit of Scala.
- Async, in the spirit of Netty.
- Sessions can be stored in cookies or clustered Hazelcast.
- jQuery Validation is integrated for browser side and server side validation. i18n using GNU gettext, which means unlike most other solutions, both singular and plural forms are supported.
- Conditional GET using ETag.
Hazelcast also gives:
- In-process and clustered cache, you don't need separate cache servers.
- In-process and clustered Comet, you can scale Comet to multiple web servers.
Follow the tutorial for a quick start.
There's also Pinky, which used to be on bitbucket but got transfered to github.
By the way, github is a great place to search for Scala projects, as there's a lot being put there.
I'd like to add my own efforts to this list. You can find out more information here:
It's in early development and I'm still working on it aggressively. It includes features like:
- A focus on simplicity and extensibility.
- Integrated build tool.
- Modular design; some initial modules includes support for scalate, email, jms, jpa, squeryl, cassandra, cron services and more.
- Simple RESTful controllers and actions.
Any and all feedback is much appreciated.
UPDATE: 2011-09-078, I just posted a major update to version 0.9.1. There's more info at http://brzy.org which includes a screencast.
Both Sweet and Slinky seem to be unmaintanted for about a year. Sweet Maven repo sweetsoftwaredesign.com is dead so there's even no way to download dependencies.
Note: Spiffy is outdated.
<plug>
Spiffy:
- is written in Scala
- uses the fantastic Akka library and actors to scale
- uses servlet API 3.0 for asynchronous request handling
- is modular (replacing components is straight forward)
- uses DSLs to cut down on code where you don't want it
- supports Scalate and Freemarker for templating
Spiffy is a web framework using Scala, Akka (a Scala actor implementation), and the Java Servlet 3.0 API. It makes use of the the async interface and aims to provide a massively parallel and scalable environment for web applications. Spiffy's various components are all based on the idea that they need to be independent minimalistic modules that do small amounts of work very quickly and hand off the request to the next component in the pipeline. After the last component is done processing the request it signals the servlet container by "completing" the request and sending it back to the client.
https://github.com/mardambey/spiffy
</plug>
You could also try Context. It was designed to be a Java-framework but I have successfully used it with Scala also without difficulties. It is a component based framework and has similar properties as Lift or Tapestry.
I have stumbled upon your question a few weeks back, but since then also learned about Circumflex. This is a nice, minimal framework that is therefore easy to learn, and it has pretty good documentation available as well.
Beside it's minimal-ness, it also claims to work well with other libraries and lets you use your own implementation of things when you need it.
참고URL : https://stackoverflow.com/questions/1488412/what-scala-web-frameworks-are-available
'Programming' 카테고리의 다른 글
C #의 루프에서 변수를 캡처 (0) | 2020.05.10 |
---|---|
Sublime Text 2에서 인쇄하는 방법 (0) | 2020.05.10 |
HTML 양식 중첩 제한을 어떻게 극복합니까? (0) | 2020.05.10 |
mongoDB보다 Redis가 얼마나 빠릅니까? (0) | 2020.05.10 |
AngularJS에서 지시문에서 지시문 추가 (0) | 2020.05.10 |