This README outlines the steps for setting up a Spring Boot-based banking application for CS-460.
- Visit: https://start.spring.io/
- Project: Select Maven Project.
- Language: Choose Java.
- Spring Boot: Select the latest stable version (e.g., 3.3.4 as of October 2024).
- Project Metadata:
- Group:
edu.ensign.cs460 - Artifact:
banking-api - Name: Should autofill as
banking-application. - Description:
A Spring Boot-based banking application for CS-460 course. - Package name: Should autofill based on Group and Artifact. Adjust if necessary to match your institution's naming conventions.
- Packaging: Choose Jar.
- Java: Select 21.
- Group:
- Dependencies:
- Add the following dependencies by typing into the search box and selecting each:
- Spring Data JPA
- Spring Web
- Spring Security
- MySQL Driver
- H2 Database
- Spring Boot DevTools
- Lombok (to reduce boilerplate code)
- Validation - Bean Validation with Hibernate Validator
- Add the following dependencies by typing into the search box and selecting each:
- Generate and Download: Click the button at the bottom of the page. This will download a .zip file containing your project setup.
- Copy
banking-api.zipto your Github Codespace. - Open the terminal and run:
bin/extract banking-api.zip
- Expand the project structure in VS Code within your Github Codespace to familiarize yourself with the layout.
- Open the
pom.xmlfile. Review the dependencies and ensure they match what was specified in Spring Initializr. - Run the
BankingApiApplicationclass (it should have a main method with@SpringBootApplicationannotation) usingmvn package spring-boot:run. - If the application starts without errors, you have successfully set up your project.
- Stage all files:
git add . - Commit the changes with a message:
git commit -am "Initial commit"
You're now ready to start developing your banking application!