Run Skinny app now!
./skinny run
Let's try scaffolding. Simple Bootstrap based CRUD pages will be generated.
./skinny g scaffold members member name:String activated:Boolean luckyNumber:Option[Long] birthday:Option[LocalDate]
./skinny db:migrate
./skinny run
Testing is also important. Running tests is like this:
./skinny db:migrate test
./skinny test
Skinny apps are Servlet applications. Let's create war file and deploy it to Servlet containers you prefer (e.g. Jetty, Tomcat, etc.).
./skinny package
Skinny is a full-stack web app framework to build Servlet applications.
To put it simply, Skinny framework’s concept is Scala on Rails.
Skinny is highly inspired by Ruby on Rails and it is optimized for sustainable productivity for Servlet-based web app development.
Skinny is built upon several stable OSS libraries.
Skinny Micro is at once a micro Web framework to build Servlet applications in Scala and the core part of Skinny Framework 2. Skinny Micro started as a fork of Scalatra. After that, many improvements have been made to be safer and more efficient when working with Scala Future values upon it. Basically, Skinny Micro’s DSLs are source compatible with Scalatra 2.3’s ones. But names of base traits and packages are mostly renamed and the structure of internal modules are re-designed.
- http://skinny-framework.org/documentation/micro.html
- https://github.com/skinny-framework/skinny-micro
Skinny ORM is built upon ScalikeJDBC which is a tidy JDBC wrapper library. Learning ScalikeJDBC will help you to understand how to work with RDB effeciently.
Skinny's DB migration cames with Flyway.
The Skinny MVC's default template engine is Scalate. When you go with Scalate, please read Scalate's documentation too.
skinny script is a simple warpper of sbt to be approachable especially for beginners. sbt is the de facto standard build tool in Scala. Understanding sbt will help you when building Skinny apps.