This is a template app for the Ninthdrug Scala webserver. You can download and build the ninthdrug.jar from source at https://github.com/ninthdrug/ninthdrug or use the one included in this repo. There's an "appdevkit" directory that has a collection of bash scripts to help you install and update your app.
- linux server
- java jdk version 1.6
- ant version 1.8
- scala version 2.10 - http://www.scala-lang.org/
- ninthdrug.jar - https://github.com/ninthdrug/ninthdrug
- postgresql
- sudo rights to postgres user
- Edit the conf/taakapp.conf
- This config file can be renamed, just update to build.xml ()
- Edit the appdevkit/daogenerator.conf
- properties: package name, app name and the source file
- Edit .ninthdrug to reference ninthdrug.conf and taakapp.conf in <install.dir>/conf/
- Edit start_webserver
- Run setup.sh
- dbadmin.sh (md)
- dbadmin.sh (ct)
- Postgres Notes
- Use dbadmin.sh (desc) to generate db.description
- Run the daogenerator.sh for each table
- Publish code to src directory with publishdaocode.sh
- Customize src/web/alpha
- Customize src/main/scala
- Invoke ant
- Invoke ant deploy
- Run <install.dir>/bin/start_webserver
~/.ninthdrug
/opt/ninthdrug/conf/ninthdrug.conf
/opt/ninthdrug/conf/<taakapp>.conf
/opt/ninthdrug/bin/start_webserver
/opt/ninthdrug/conf/ninthdrug.conf
/opt/ninthdrug/conf/<taakapp>.conf
/opt/ninthdrug/lib/*.jar
/opt/ninthdrug/log/ninthdrug.log
/opt/ninthdrug/websites/<taakapp>/
The daogenerator.sh is written for tables with these two required fields. "active" should be defaulted to true.
-id Int -active Boolean
Copyright 2013 Kyle Dinh
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.