在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:lift/framework开源软件地址:https://github.com/lift/framework开源编程语言:Scala 88.0%开源软件介绍:The Lift Web FrameworkLift is the most powerful, most secure web framework available today. There are Seven Things that distinguish Lift from other web frameworks. Lift applications are:
Because Lift applications are written in Scala, an elegant JVM language, you can still use your favorite Java libraries and deploy to your favorite Servlet Container and app server. Use the code you've already written and deploy to the container you've already configured! Getting StartedCompatibility note: As of Lift 3.0, you'll need to be running Java 8 to use Lift. For those using Java 6 or Java 7, you'll need to use Lift 2.6 until you can upgrade your Java installation. You can create a new Lift project using your favorite build system by adding Lift as a dependency. Below we walk through setting up Lift in sbt and Maven. With sbt (new project)If you're using a recent version of sbt (e.g. 0.13.16), you can create a new Lift application using our Giter8. To create a new, basic Lift application that has some example code, simply execute:
Or, if you're more on the advanced side of the room, you can also create a new, entirely blank application:
Follow the prompts to create your Lift application. Running the ServerIn order to run the server, navigate to the application folder and run the
By default, the server should run on http://localhost:8080. The above command will do what you probably want; the application will recompile and restart whenever you change HTML, resources or Scala code. If your efforts are primarily dedicated to the frontend, you may find that it's not efficient to recompile and restart the application every time you change CSS or HTML. In this case, a good alternative command is
The difference between start and quickstart is that start serves assets from your target directory where the exploded WAR is, and quickstart serves from the src directory where you're editing the files. Note that there is not a leading tilde ~ on the quickstart command. This is so that compile is not triggered when resources change. Your changed resources will be served directly. Note that in this mode Scala changes must be manually compiled. With sbt (Existing project)If you're using Lift in an existing sbt project you'll need to:
To add the xsbt-web-plugin download the most recent version of our web-plugin.sbt file
to your Then, enable the plugin for the container you want to use and in your enablePlugins(JettyPlugin) More information on using the plugin can be found on the xsbt-web-plugin project. After you've done this, you'll want to add Lift to your libraryDependencies ++= {
val liftVersion = "3.3.0"
Seq(
"net.liftweb" %% "lift-webkit" % liftVersion % "compile",
"ch.qos.logback" % "logback-classic" % "1.2.3"
)
} Running the ServerThe same run process as above applies to this project configuration. With MavenAdd Lift to your
Where You can learn more about Maven integration on the wiki. Learning LiftThere are lots of resources out there for learning Lift. Some of our favorites include: If you've found one that you particularly enjoy, please open a PR to update this README! Issues & Pull RequestsPer our contributing guidelines, Issues on the Lift GitHub project are intended to describe actionable, already-discussed items. Committers on the project may open issues for themselves at any time, but non-committers should visit the Lift mailing list and start a discussion for any issue that they wish to open. We will accept issues and pull requests into the Lift codebase if the pull requests meet the following criteria:
Project OrganizationThe Lift Framework is divided into several components that are published independently. This organization enables you to use just the elements of Lift necessary for your project and no more. This RepositoryThis repository,
Other RepostoriesThere are a variety of other repositories available on the Lift GitHub page. While many are concerned with building Lift or are build program archetypes, there are two you will probably encounter fairly frequently as a Lift user: modulesThe modules organization contains some of the many add-on modules that are part of the Lift project. If you don't find a module you need here, consider looking for it on the Lift modules directory or creating a module and sharing it with the community. examplesThe examples repository contains the source code for several example Lift applications, including demo.liftweb.com. Building LiftIf you simply want to use Lift in your project, add Lift as a dependency to your build system or download the JAR files directly. If you wish to build Lift from source, check out this repository and use the included
There is additional documentation on the wiki. Additional ResourcesHomepageThe main Lift website is http://www.liftweb.net. The site contains information on the latest Lift releases, a getting started guide, links to several Lift online books, and additional information. Mailing ListThe Lift Google Group is the official place for support and is an active, friendly community to boot! It can be found at http://groups.google.com/forum/#!forum/liftweb. WikiThe Lift wiki is hosted on Assembla and can be found at http://www.assembla.com/spaces/liftweb/wiki/. Anyone is welcome to contribute to the wiki; you must create an account and watch the Lift project in order to create or edit wiki pages. ScalaDocsThe ScalaDocs for each release of Lift, in additional to the actual JARs, are available on the Liftweb.net site. You can access the source code–based documentation for releases via the site's homepage or by navigating directly to the URL for the specific release. For instance, the Lift 3.2 release can be accessed at http://liftweb.net/api/32/api/. LicenseLift is open source software released under the Apache 2.0 license. Continuous IntegrationSNAPSHOTs are built by Travis CI |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论