Objective
This is very basic Scala Play project which provides CRUD operations in postgres DB which can be visualized on simple UI. It uses scalikejdbc JDBC library for data access layer.
Prerequisites
- sbt >= 1.9.8 (https://www.scala-sbt.org/1.x/docs/Setup.html)
- Postgres >= 15.6 (https://www.postgresql.org/download/)
How to run
-
Clone this repo
-
Update Ppostgres username and password in application.conf file.
-
Create employees table by running below SQL script in Postgres
create table employees(id serial primary key, name text, designation text)
-
Run 'sbt compile' in terminal from project directory
-
Run 'sbt run' and access localhost:9000
UI