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.
- Clone project to your machine using git - "git clone https://github.com/dlbunker/ps-guitar-rest.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'
{
"name":"C.F. Martin & Company",
"foundedDate": "1833-01-01T07:00:00.000+0000",
"averageYearlySales": 3000000,
"active": true
}
{
"_links": {
"modelType": {
"href": "http://localhost:8080/api/modelTypes/3"
,
"rel": "modelType"
}
}
}