Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 47 lines (27 sloc) 2.065 kb
7b8222e5 »
2012-09-03 * Much better README.md to get started.
1 #Lift version 2.5 templates
2
4bc377e8 »
2012-07-17 Added README.md back
3 This repository contains templates for Lift projects.
4
5 These templates offer a starting point for your Lift-based project.
6
1422993a »
2013-06-03 updated readme to 2.10
7 If you want to start with Scala 2.10.0, use the templates in the scala_210 directory
4bc377e8 »
2012-07-17 Added README.md back
8
7b8222e5 »
2012-09-03 * Much better README.md to get started.
9 ##Getting started.
10
11 Most people will want to start with the `lift_basic` template. This template shows you how to use:
12
13 * `Mapper`, which is one way to connect to a database using **Lift**.
14 * `specs2`, to write unit tests (or spec tests).
15
16 ##How to use them.
17
18 At your terminal, enter:
19
20 1. `git clone https://github.com/lift/lift_25_sbt.git`
21 2. `cd lift_25_sbt/scala_29/lift_basic`
22 3. `./sbt`
23
24 SBT will download a lot of stuff and after some time, you will see the sbt prompt `>`
25 4. `gen-idea`
26
27 This will download even more stuff, and it will generate files that Intellij IDEA can read. IntelliJ is one of several IDE's you can use.
28 5. `container:start`
29 6. Your Lift application is now running at [127.0.0.1:8080](http://127.0.0.1:8080)
30
31
32 ##How to work with Lift.
33
34 Now that you have your first Lift application running, you may want to look around the code, change a few things and see what happens.
35
36 You can use any IDE you want, even a text editor, but one of the best IDE for Scala is IntelliJ IDEA with the scala plugin. We'll assume you already got that installed. If you need help, this is the [plugin page](http://confluence.jetbrains.net/display/SCA/Scala+Plugin+for+IntelliJ+IDEA)
37
38 1. Open Intellij, click on `File` -> `Open Project`
39 2. Navigate to the folder `lift_25_sbt/scala_29/lift_basic` and click open.
40
41 Because we run the `gen-idea` command in the previous section, **sbt** already created the files Intellij needs to understand a new project.
42 You can now navigate through the different files, and make changes as you wish. To see those changes take effect, you go back to `sbt` and restart `jetty` by doing `;container:stop;container:start`
43
44 ## Getting help.
45
1422993a »
2013-06-03 updated readme to 2.10
46 Questions, feedback, etc. please join the conversation at https://groups.google.com/forum/#!forum/liftweb
Something went wrong with that request. Please try again.