- Spring Boot
- Spring Security
- JSP
- Spring Data JPA
- Spring Data REST
- H2 (development database)
- MySQL (production database)
- Register & Logout
- Administrator
- Add/Remove/Update Series
- Add/Remove/Update Season
- Add/Remove/Update Episodes
- Add/Remove/Update Movies
- Delete the account
- Delete the account of different user
- Change the password
- Change the password of different user
- View all accounts
- User
- Add Movies from the available movies
- Add Series from the available series
- Add Seasons from the available seasons
- Add Episodes from the available episodes
- Delete the account
- Change the password
Folder src/resources contains config files for this Spring application.
- src/resources/application.properties - main configuration file. Here it's possible to change the port number.
- src/resources/application-dev.properties - configuration file for development. Contains configuration for development.
- src/resources/application-prod.properties - configuration file for production. Contains configuration for production.
There are several ways to run the application. You can run it from the command line with included Maven Wrapper or Maven itself.
Once the application starts, go to the web browser and visit http://localhost:48080
Go to the root directory of the application and type:
$ chmod +x mvnw
$ ./mvnw spring-boot:run -Dspring-boot.run.profiles=dev
Or you can build the JAR file with
$ ./mvnw clean package
Then you can run the JAR file
$ java -jar -Dspring.profiles.active=dev target/watchers-1.0.war
Open a terminal and run the following commands to ensure that you have valid versions of Java and Maven installed
$ java -version
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.292-b10, mixed mode)
$ mvn -version
Maven home: /Users/your_username/.mvnvm/apache-maven-3.6.3
Java version: 1.8.0_292, vendor: AdoptOpenJDK, runtime: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre
Default locale: en_PL, platform encoding: UTF-8
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"
The Spring Boot Maven plugin includes a run goal that can be used to quickly compile and run your application. Applications run in an exploded form, as they do in your IDE. The following example shows a typical Maven command to run a Spring Boot application:
$ mvn spring-boot:run -Dspring-boot.run.profiles=dev
Or you can build the JAR file with
$ mvn clean package
Then you can run the JAR file
$ java -jar -Dspring.profiles.active=dev target/watchers-1.0.war
$ mvn clean package
$ docker build -t watchers/watchers .
$ docker run -p 48080:48080 watchers/watchers
Tests can be run by executing the following command from the root directory of the application
$ mvn test