Getting started with SBT for lifting

I am a complete newbie in SBT and the scala world. I want to create an elevator app, and while learning how to do this, I stumbled around that I have to use SBT. So I went to the github wiki page and followed the instructions for windows. I downloaded the jar indicated there and created the sbt.bat file and placed both files in c: \ sbt and added it to my path. Then I went to c: \ liftprojects and printed sbt.

He did something, but as indicated everywhere, I was expecting some kind of wizard who would ask me which project I want to create and create and generate a directory structure like mvn: archetype: generate, but he did nothing. He just ran a few downloads and created two directories

project
  boot
    blah
  target
    blah
target
  scala 2.8.1
    blah

the github wiki says sbt follows the maven bir structure, but I don't see it here.

I am doing something wrong. I am stuck on this. I only need to know how to create an elevator application or scala project.

+5
source share
1 answer

To get started with Lift 2.4, my recommendation is to clone the sample repository

git clone https://github.com/lift/lift_24_sbt

Then you can use one of the project templates in this repo with Scala versions 2.8 and 2.9. For example, a good way to start with Lift is to use a basic project (using Scala 2.8.1 in this example)

cd lift_24_sbt/scala_28/lift_basic/

Run sbtby typing

./sbt

On Windows use sbt.bat. Inside the sbt console, type

update

jetty-run

- http://localhost:8080, "". , jetty-stop. .

. , , .

+4

All Articles