From ed7d2fce9a3609989a608c61c8ebeacd8b6cdc3a Mon Sep 17 00:00:00 2001
From: Pedro Cardona <pedropca@stud.ntnu.no>
Date: Tue, 18 Apr 2023 14:02:10 +0200
Subject: [PATCH] Dependencies for the postgre driver was added to the POM
 file.

---
 pom.xml                                       |   7 +++++++
 target/classes/application.properties         |  18 +++++++++++++++++-
 .../v233/SmartMat/SmartMatApplication.class   | Bin 933 -> 933 bytes
 3 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 38b6797b..8f9b9d6a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -56,6 +56,13 @@
 			<groupId>org.springframework.boot</groupId>
 			<artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
 		</dependency>
+
+		<dependency>
+			<groupId>org.postgresql</groupId>
+			<artifactId>postgresql</artifactId>
+			<version>42.6.0</version>
+		</dependency>
+
 	</dependencies>
 
 	<build>
diff --git a/target/classes/application.properties b/target/classes/application.properties
index 217b42da..dced60ae 100644
--- a/target/classes/application.properties
+++ b/target/classes/application.properties
@@ -1 +1,17 @@
-domain.domain = "localhost:5334";
\ No newline at end of file
+
+# Database connection settings
+spring.datasource.url=jdbc:postgres://smartmat_user:Eyhs1OJxyZC56NQCrV7yAolEk9AkLAsC@dpg-cgv5710dh87i4q0fd1b0-a.frankfurt-postgres.render.com/smartmat
+spring.datasource.username=smartmat_user
+spring.datasource.password=Eyhs1OJxyZC56NQCrV7yAolEk9AkLAsC
+spring.datasource.driver-class-name=org.postgresql.Driver
+
+## info
+
+# Hostname: dpg-cgv5710dh87i4q0fd1b0-a
+# Port: 5432
+# Database: smartmat
+# Username: smartmat_user
+# Password: Eyhs1OJxyZC56NQCrV7yAolEk9AkLAsC
+# Internal Database URl (from render): postgres://smartmat_user:Eyhs1OJxyZC56NQCrV7yAolEk9AkLAsC@dpg-cgv5710dh87i4q0fd1b0-a/smartmat
+# External Database URL: postgres://smartmat_user:Eyhs1OJxyZC56NQCrV7yAolEk9AkLAsC@dpg-cgv5710dh87i4q0fd1b0-a.frankfurt-postgres.render.com/smartmat
+# PSQL Command: PGPASSWORD=Eyhs1OJxyZC56NQCrV7yAolEk9AkLAsC psql -h dpg-cgv5710dh87i4q0fd1b0-a.frankfurt-postgres.render.com -U smartmat_user smartmat
\ No newline at end of file
diff --git a/target/classes/ntnu/idatt2016/v233/SmartMat/SmartMatApplication.class b/target/classes/ntnu/idatt2016/v233/SmartMat/SmartMatApplication.class
index 08daf566bdd0df641c7e811e2467f06974cf8deb..21dd07f2e3ea48196f82b7fa1d63172f39e2f0ff 100644
GIT binary patch
delta 17
ZcmZ3=zLcHg)W2Q(7#JArH*(Bn1^_*i1~~u#

delta 17
ZcmZ3=zLcHg)W2Q(7#J8FHge2m1^_*n208!$

-- 
GitLab