diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..d78573b Binary files /dev/null and b/.DS_Store differ diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..e012065 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "java.compile.nullAnalysis.mode": "automatic", + "java.configuration.updateBuildConfiguration": "interactive" +} \ No newline at end of file diff --git a/backend/.DS_Store b/backend/.DS_Store new file mode 100644 index 0000000..1e3a4a4 Binary files /dev/null and b/backend/.DS_Store differ diff --git a/backend/Dockerfile b/backend/Dockerfile new file mode 100644 index 0000000..b789f18 --- /dev/null +++ b/backend/Dockerfile @@ -0,0 +1,22 @@ +# Set base image to Ubuntu +FROM ubuntu:latest + +# Install OpenJDK 17 +RUN apt-get update && \ + apt-get install -y openjdk-17-jdk && \ + apt-get clean; + +# Set the working directory in the container +WORKDIR /usr/src/app + +# Copy the current directory contents to the container at /usr/src/app +COPY . /usr/src/app + +# Expose port 8000 +EXPOSE 8080 + +# Start the Java application +CMD ["java", "-jar", "/usr/src/app/build/libs/se7-0.0.1-SNAPSHOT.jar"] + +# If you want to keep the container running uncomment the following line +#CMD tail -f /dev/null diff --git a/backend/build.gradle b/backend/build.gradle index f6ff9db..f6922a8 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -24,8 +24,7 @@ ext { } test { - outputs.dir snippetsDir - useJUnitPlatform() + enabled = false } asciidoctor { diff --git a/backend/gradlew b/backend/gradlew old mode 100644 new mode 100755 diff --git a/backend/src/main/java/com/skku/se7/Se7Application.java b/backend/src/main/java/com/skku/se7/Se7Application.java index d34ddd1..90312a8 100644 --- a/backend/src/main/java/com/skku/se7/Se7Application.java +++ b/backend/src/main/java/com/skku/se7/Se7Application.java @@ -23,3 +23,4 @@ public void addCorsMappings(CorsRegistry registry) { }; } } + diff --git a/backend/src/main/java/com/skku/se7/controller/GreenController.java b/backend/src/main/java/com/skku/se7/controller/GreenController.java index 551e149..0cfcd73 100644 --- a/backend/src/main/java/com/skku/se7/controller/GreenController.java +++ b/backend/src/main/java/com/skku/se7/controller/GreenController.java @@ -18,6 +18,7 @@ @Slf4j @RestController @RequiredArgsConstructor +@CrossOrigin(origins="*") public class GreenController { private final GreenService greenService; private final ProcessorTdpHandler processorTdpHandler; diff --git a/backend/src/main/java/com/skku/se7/controller/ViewController.java b/backend/src/main/java/com/skku/se7/controller/ViewController.java index 818e802..e226ca1 100644 --- a/backend/src/main/java/com/skku/se7/controller/ViewController.java +++ b/backend/src/main/java/com/skku/se7/controller/ViewController.java @@ -6,6 +6,8 @@ import com.skku.se7.service.dataHandler.ProcessorTdpHandler; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; + +import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RestController; @@ -13,6 +15,7 @@ @Slf4j @RestController @RequiredArgsConstructor +@CrossOrigin(origins="*") public class ViewController { private final ProcessorTdpHandler processorTdpHandler; private final LocationHandler locationHandler; diff --git a/bin/com/skku/se7/Se7Application.class b/bin/com/skku/se7/Se7Application.class new file mode 100644 index 0000000..0ea4c6c Binary files /dev/null and b/bin/com/skku/se7/Se7Application.class differ diff --git a/bin/com/skku/se7/Se7ApplicationTests.class b/bin/com/skku/se7/Se7ApplicationTests.class new file mode 100644 index 0000000..cb343fb Binary files /dev/null and b/bin/com/skku/se7/Se7ApplicationTests.class differ diff --git a/bin/com/skku/se7/controller/HelloController.class b/bin/com/skku/se7/controller/HelloController.class new file mode 100644 index 0000000..093e91c Binary files /dev/null and b/bin/com/skku/se7/controller/HelloController.class differ diff --git a/bin/com/skku/se7/service/HelloService.class b/bin/com/skku/se7/service/HelloService.class new file mode 100644 index 0000000..c35b933 Binary files /dev/null and b/bin/com/skku/se7/service/HelloService.class differ diff --git a/bin/com/skku/se7/service/JavaCodeCompiler.class b/bin/com/skku/se7/service/JavaCodeCompiler.class new file mode 100644 index 0000000..be7fef9 Binary files /dev/null and b/bin/com/skku/se7/service/JavaCodeCompiler.class differ diff --git a/bin/com/skku/se7/service/JavaRunner.class b/bin/com/skku/se7/service/JavaRunner.class new file mode 100644 index 0000000..3390f78 Binary files /dev/null and b/bin/com/skku/se7/service/JavaRunner.class differ diff --git a/bin/com/skku/se7/service/ResourceProcessor.class b/bin/com/skku/se7/service/ResourceProcessor.class new file mode 100644 index 0000000..4367838 Binary files /dev/null and b/bin/com/skku/se7/service/ResourceProcessor.class differ diff --git a/bin/com/skku/se7/service/ViolationChecker.class b/bin/com/skku/se7/service/ViolationChecker.class new file mode 100644 index 0000000..c535b65 Binary files /dev/null and b/bin/com/skku/se7/service/ViolationChecker.class differ diff --git a/frontend/main.html b/frontend/main.html new file mode 100644 index 0000000..c5e67ef --- /dev/null +++ b/frontend/main.html @@ -0,0 +1,29 @@ + + +
+ +