Java Backend Setup - Quad22-Technologies/game_rec_wiki GitHub Wiki
Reference - https://www.section.io/engineering-education/how-to-create-a-rest-api-using-spring-boot-maven-and-mysql/ What you will learn running and building the backend Service:
- Java - Java is a programming language
- JDK - is a development environment for building applications, applets, and components using the Java programming language
- Maven - used Java-based projects, helping to download dependencies, which refers to the libraries or JAR files
- Spring Boot - frameworks that developers use to build backend web apps
- MVC - Model, View, Controllers
- Apache Tomcat - Apache Tomcat is a popular open-source web server and Servlet container for Java code.
- HTTPS - the secure version of HTTP, which is the primary protocol used to send data between a web browser and a website
- Visual Studio Code- Integrated Development Environment(IDE)
Clone the repository in VS Code
- Open Visual Studio Code > Open a new terminal and navigate to your workspace folder.
- Type git clone https://github.com/Quad22-Technologies/service-studentvue.git to clone the student-service to your machine.
- Both repositories should be viewable in your source control window like so:
Download Java JDK
- Download Java 17 --> https://www.oracle.com/java/technologies/downloads/#jdk17-windows - compressed archive 2 Create a folder in Programs Files named Java - (we will map to it later) UnZip your Java JDK files into this folder
Development Environment Backend Set up
-
Go to https://www.jetbrains.com/help/idea/installation-guide.html#toolbox to download JetBeans TookBox
-
Under tools search for Community Edition > Download the Community Version for IntelliJ
-
Open IntelliJ > Open your clone project > File > open > navigate to your project folder
-
You will receive a notification to load Maven Build scripts. > Click Load
-
in the project explorer window navigate to the StudentvueServiceApplication file
-
Right-click> Click Run studentvueService...main()
-
In the output window you should see the following:
-
Notice the API Service is running on a local Web Server (Tomcat Server): port 8080
-
Open a browser and navigate to url http://localhost:8080/api/allnames - you will see the JSON.... If you want you can use Postman