Example of CRUD Web application with postgres database using scala-jdbc, unfiltered framework and scala tags.
To start this app in sbt do commands as follows:
$ sbt
> run
To pack it in one directory with libraries (.jar)
> pack
- Copy public,conf folders and start,stop files to application root directory of remote server.
- Use command ./mkarc to make archive app.tar.gz
- Move file app.tar.gz to application root directory of remote server.
- Extract file app.tar.gz on remote server: tar -xvf app.tar.gz
- Application parameters are placed in conf/config.txt. We can change it before starting.
- Use commands ./start and ./stop to start and to stop application on remote server.
- Use http://remote_server_name_or_IP:port in web browser.