Postres installation(Ubuntu):
- sudo apt-get update
- sudo apt-get install postgresql postgresql-contrib
Setting postgres password:
- sudo -u postgres psql
- \password postgres -- type password -- recommended: 123
- \q
Install pgadmin:
- sudo apt install pgadmin3
Setting up db server:
- open pgadmin3
- create a new server -- owner -> postgres -- recommended name localhost
- create new db -- owner -> postgres -- recommended name enroll
Running:
- git clone https://github.com/KacperFKorban/Enroll
- cd Enroll
- in conf/application.conf fill in propertiies url, user and password if using other than recommended
- go to app/tables/DBConfig.scala and run main to create schemas and populate exampke courses
- sbt run