Skip to content
Snippets Groups Projects
Commit 61e3195f authored by Vojtěch Malý's avatar Vojtěch Malý
Browse files

Merge branch 'fix/main-module-deletion' into 'main'

Feat: Deletion of unnecessary main module.

See merge request !28
parents aad17a6a b4a27388
No related branches found
No related tags found
2 merge requests!29Milestone 02,!28Feat: Deletion of unnecessary main module.
Pipeline #
......@@ -27,15 +27,6 @@ of similar movies and / or movies that were liked the most by other users watchi
Project contains modules as microservices.
### module-main
`mvn -pl module-main spring-boot:run`
Description: This module serves as the entry point for the entire
system. It initializes all the microservices and manages the communication between them.
*This module is reserved for final submission and M3, reviewers - please take note of this.*
### module-movie
`mvn -pl module-movie spring-boot:run`
......@@ -67,6 +58,7 @@ It uses user rating and movie data from other modules to create personalized rec
Description: This module manages user data such as name, email, and password.
It provides an interface for user registration, login, and authentication. It communicates with other modules.
## Podman deployment
Before you start, make sure you have **built all the modules** using `mvn clean install` command and
pulled the Temurin image using `podman pull registry.hub.docker.com/library/eclipse-temurin:17-jdk-alpine` command.
......
......@@ -43,14 +43,4 @@ services:
- user-module
environment:
SERVICES_MOVIE_URL: http://movie-module
SERVICES_RATING_URL: http://rating-module
# main-module:
# image: pa165-movie-recommendation-project/module-main
# ports:
# - "8080:8080"
# depends_on:
# - user-module
# - movie-module
# - rating-module
# - recommendation-module
\ No newline at end of file
SERVICES_RATING_URL: http://rating-module
\ No newline at end of file
FROM eclipse-temurin:17-jdk-alpine
COPY target/*.jar /main-module.jar
ENTRYPOINT ["java", "-jar", "/main-module.jar"]
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>cz.muni.fi.pa165</groupId>
<artifactId>movie-recommendation-project</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>cz.muni.fi.pa165</groupId>
<artifactId>module-main</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>module-main</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.9.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
package cz.muni.fi.pa165;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
package cz.muni.fi.pa165;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String testName )
{
super( testName );
}
/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( AppTest.class );
}
/**
* Rigourous Test :-)
*/
public void testApp()
{
assertTrue( true );
}
}
......@@ -51,7 +51,6 @@
<modules>
<module>module-main</module>
<module>module-movie</module>
<module>module-recommendation</module>
<module>module-rating</module>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment