diff --git a/.gitignore b/.gitignore
index 780840c..450c0f4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,12 +19,15 @@
*.tar.gz
*.rar
+<<<<<<< HEAD
# Resources
src/main/resources
# Properties files
*.properties
+=======
+>>>>>>> ce793d902e0374fe41c8edd9e05657e1adfc1a66
# IntelliJ
\.idea
@@ -33,3 +36,4 @@ hs_err_pid*
# ignore any .properties files
*.properties
+/.jpb/
diff --git a/README.md b/README.md
index 7b787a4..802f27d 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,11 @@ Team Vanquish Project 2 Implementation
- [ ] Client/Server communication is done with JSON in HTTP request and response bodies.
- [ ] All low-level persistence logic is abstracted away with Hibernate/Spring Data
- [ ] Documentation (all classes and methods have adequate Javadoc comments)
+<<<<<<< HEAD
- [ ] All Exceptions are caught and logged to a file/database
+=======
+- [ ] All VanquishP2.Exceptions are caught and logged to a file/database
+>>>>>>> ce793d902e0374fe41c8edd9e05657e1adfc1a66
- [ ] Data useful to the application is retrieved from a third party API
- [ ] Adequate test coverage for the service-layer
- [ ] DevOps CI/CD pipeline is used to build and deploy project to a publicly available remote location
@@ -32,14 +36,24 @@ the users that like particular artists.
* As a user, I can add or remove songs from a playlist.
* As a user, I can rate a song with a like or dislike.
* As a user, I can look up an album and see what songs are on it.
+<<<<<<< HEAD
* As a user, I can look up an artist and see a list of their top 5 songs.
* As a premium user, I can schedule a concert.
* As a premium user, I can cancel a concert.
+=======
+* As a user, I can look up an artist and see a [limited] list of their songs.
+* As a premium user, I can schedule a concert.
+* As a premium user, I can cancel a concert.
+* As a premium user, I can see a list of liked songs for a user.
+>>>>>>> ce793d902e0374fe41c8edd9e05657e1adfc1a66
* As a premium user, I can see a like/dislike ratio for a particular song.
### Bonus Stories
* As a user, I can view a list of users who like the same songs.
+<<<<<<< HEAD
* As a premium user, I can see a list of liked songs for a user.
+=======
+>>>>>>> ce793d902e0374fe41c8edd9e05657e1adfc1a66
* As a premium user, I can see a like/dislike ratio for an entire artist.
## Tech Stack
diff --git a/pom.xml b/pom.xml
index 7a6587d..569405c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,6 +1,6 @@
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
org.springframework.boot
@@ -17,15 +17,44 @@
1.8
+
-
- javax.servlet
- javax.servlet-api
- 4.0.1
+ org.springframework.boot
+ spring-boot-starter-data-jpa
+
+
+
+ org.springframework.boot
+ spring-boot-starter-validation
+ 2.5.5
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ org.springframework.boot
+ spring-boot-starter-tomcat
+ 2.5.5
provided
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+ com.vaadin.external.google
+ android-json
+ 0.0.20131108.vaadin1
+ compile
+
+
com.fasterxml.jackson.core
@@ -54,97 +83,63 @@
json
20210307
-
-
-
- io.jsonwebtoken
- jjwt-api
- 0.11.1
-
-
-
- io.jsonwebtoken
- jjwt-impl
- 0.11.1
- runtime
-
+
- io.jsonwebtoken
- jjwt-jackson
- 0.11.1
- runtime
+ io.jsonwebtoken
+ jjwt-api
+ 0.11.2
-
- org.springframework.boot
- spring-boot-starter-data-jpa
- 2.5.5
+ io.jsonwebtoken
+ jjwt-impl
+ 0.11.2
+ runtime
-
- org.springframework.boot
- spring-boot-starter-validation
- 2.5.5
+ io.jsonwebtoken
+ jjwt-jackson
+ 0.11.2
+ runtime
-
+
- org.springframework.boot
- spring-boot-starter-web
- 2.5.5
+ org.mockito
+ mockito-core
+ 4.0.0
-
-
-
-
-
-
-
-
-
-
- org.springframework.boot
- spring-boot-starter-test
- 2.5.5
- test
-
+
- com.vaadin.external.google
- android-json
- 0.0.20131108.vaadin1
- compile
+ com.h2database
+ h2
+ 1.4.200
-
- org.springframework.boot
- spring-boot-starter-data-jpa
-
-
com.squareup.okhttp3
okhttp
4.9.2
-
- junit
- junit
- test
-
+
+ junit
+ junit
+ 4.13.2
+ test
+
-
+
org.springframework.boot
spring-boot-maven-plugin
-
-
+
\ No newline at end of file
diff --git a/src/main/java/Application/DTOs/UserRegistrationDTO.java b/src/main/java/Application/DTOs/UserRegistrationDTO.java
index 85bc50e..e95fca2 100644
--- a/src/main/java/Application/DTOs/UserRegistrationDTO.java
+++ b/src/main/java/Application/DTOs/UserRegistrationDTO.java
@@ -1,6 +1,5 @@
package Application.DTOs;
-import Application.models.Location;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Email;
diff --git a/src/main/java/Application/P2Application.java b/src/main/java/Application/P2Application.java
index 8ffc9d6..b649502 100644
--- a/src/main/java/Application/P2Application.java
+++ b/src/main/java/Application/P2Application.java
@@ -1,23 +1,11 @@
package Application;
-import Application.deezer.AlbumSearch;
-import Application.deezer.ArtistSearch;
-import Application.deezer.TrackSearch;
-import Application.models.Album;
-import Application.models.Artist;
-import Application.models.Track;
-import Application.services.ConcertService;
-import Application.services.TrackService;
-import org.json.JSONException;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
-import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;
-import java.util.List;
-
@SpringBootApplication(scanBasePackages = "Application")
@EntityScan("Application")
@PropertySource(value = "classpath:application.properties")
@@ -25,15 +13,6 @@
public class P2Application {
public static void main(String[] args) {
- ConfigurableApplicationContext context = SpringApplication.run(P2Application.class, args);
-
- TrackService service = context.getBean(TrackService.class);
- ConcertService service2 = context.getBean(ConcertService.class);
-
- System.out.println("TESTING: TrackSearch for \"kiwi\"");
- List