diff --git a/README.md b/README.md index 41b5032..bea7aa1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +# Screenshots +![img.png](img.png) +![img_1.png](img_1.png) + + + # JAVA Cloud AWS - Day One ## Learning Objectives diff --git a/img.png b/img.png new file mode 100644 index 0000000..b7f0f4c Binary files /dev/null and b/img.png differ diff --git a/img_1.png b/img_1.png new file mode 100644 index 0000000..dc5638a Binary files /dev/null and b/img_1.png differ diff --git a/todo-backend/build.gradle b/todo-backend/build.gradle index 2736452..b4da3e3 100644 --- a/todo-backend/build.gradle +++ b/todo-backend/build.gradle @@ -5,7 +5,7 @@ plugins { } group = 'com.booleanuk' -version = '0.0.2' +version = '0.0.5' java { toolchain { diff --git a/todo-backend/src/main/java/com/booleanuk/TodoApp/controllers/HomeController.java b/todo-backend/src/main/java/com/booleanuk/TodoApp/controllers/HomeController.java new file mode 100644 index 0000000..150eaeb --- /dev/null +++ b/todo-backend/src/main/java/com/booleanuk/TodoApp/controllers/HomeController.java @@ -0,0 +1,16 @@ +package com.booleanuk.TodoApp.controllers; + +import org.springframework.web.bind.annotation.CrossOrigin; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +@CrossOrigin +@RestController +@RequestMapping("/") +public class HomeController { + @GetMapping + public String get() { + return "Please go to the /todos endpoint"; + } +} \ No newline at end of file diff --git a/todo-frontend/.example.env b/todo-frontend/.example.env deleted file mode 100644 index 593e7d5..0000000 --- a/todo-frontend/.example.env +++ /dev/null @@ -1,3 +0,0 @@ -# change this to the API URL of the hosted server instance on AWS -# ensure the URL does NOT end with /, remove the last / -API_ENDPOINT_URL=http://localhost:5168 \ No newline at end of file diff --git a/todo-frontend/src/consts.js b/todo-frontend/src/consts.js index 137be42..bcbfff2 100644 --- a/todo-frontend/src/consts.js +++ b/todo-frontend/src/consts.js @@ -1,5 +1,5 @@ import "react"; -const url = import.meta.env.API_ENDPOINT_URL || "http://localhost:5168"; +const url = "http://davesothertodos-env.eba-vkrtpjci.eu-west-1.elasticbeanstalk.com/"; // ensure trailing / is removed export const API_URL = url.replace(/\/$/, "");