A Basic Spring Data JPA app with an H2 DB running on Spring Boot
You will need to following tools in order to work with this project and code
- git (http://git-scm.com/)
- JDK 1.8+ (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
- Maven 3.x+ (http://maven.apache.org/)
- An IDE of your choice. (Eclipse, IntelliJ, Spring STS, Netbeans, etc.)
To run this project locally, perform the following steps. This is based on the example supplied by Pluralsigh Getting Started with Spring REST course
- Clone project to your machine using git - "git clone https://github.com/fawadrashid/ps-rest-demo.git"
- Import the project into your IDE using the maven pom.xml. In spring STS suite this is done by importing an existing maven project
- Run the JUnit tests in the src/test/java folder. If all the tests pass, pat yourself on the back.
- Next try running the app as a Spring Boot app. You can do this by running the Main.java file in this project as a standard java project or you can run spring boot at your project's root with Maven using the following command. 'mvn spring-boot:run'