Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tomtom828/springburger

A re-make of my classic burger app using Java, Maven, MySQL, and the Spring Boot framework.
https://github.com/tomtom828/springburger

java mariadb maven mysql spring-boot spring-mvc thymeleaf

Last synced: 1 day ago
JSON representation

A re-make of my classic burger app using Java, Maven, MySQL, and the Spring Boot framework.

Awesome Lists containing this project

README

        

# :coffee: :seedling: Spring Burger :hamburger:

A re-make of my [classic burger app](https://github.com/tomtom28/sequelizedBurger) using Java, Maven, MariaDB, Thymeleaf, and the Spring MVC framework.

Future updates may also include an Excel download feature for users to analyze burger consumption.

Check it out!

https://java-burger.herokuapp.com/

### Cloning Down the Repo

#### Option 1
Save yourself the headache and open the project with IntelliJ...

- Download [IntelliJ](https://www.jetbrains.com/idea/) Community Edition

- Using the Import option, select the pom.xml file.

- IntelliJ will automatically build the dependencies using Maven (built into IntelliJ).

- Then, open MySQL workbench and create a burger database using the `schema.sql` file.

- After that, click the green play button in IntelliJ to run the project.

- Finally, open up to localhost:8080 in your browser to see the webapp in action.

#### Option 2
Be awesome and take the command line approach...

- Seed the database using the schema file from above.

- Using [Maven](https://maven.apache.org/), run `mvn compile` to download all dependencies.

- To get Maven, I have two repos where you can get more instructions for [Mac](https://github.com/tomtom28/hello-unix#install-maven-for-java-web-development) or [PC](https://github.com/tomtom28/hello-windows#maven).

- Using Maven, run `mvn package` to package the project into a war file.

- Then, you can run `java -jar target/burger-0.1.0.war` to launch the server. The best part is that with Spring Boot, you do NOT even need to have [Tomcat](http://tomcat.apache.org/) installed.

- The webserver is built into the "fat" war file. Learn more [here](https://spring.io/blog/2014/03/07/deploying-spring-boot-applications#embedded-web-server-deployment).

- Finally, open up to localhost:8080 in your browser to see the webapp in action.

- If needed, you can remove all downloaded dependencies using `mvn clean`.

### Screenshot

![Java Burger Home Page](/screenshots/spring-burger-index.png)

### Sources

Below are some great resources that I referenced in building the application...

For Java Basics:

https://www.youtube.com/playlist?list=PLE7E8B7F4856C9B19

https://www.tutorialspoint.com/java/index.htm

For Java-Excel API

https://www.mkyong.com/java/jexcel-api-reading-and-writing-excel-file-in-java/

For Maven Basics:

https://www.youtube.com/watch?v=al7bRZzz4oU&list=PL92E89440B7BFD0F6

https://www.tutorialspoint.com/maven/maven_quick_guide.htm

https://mvnrepository.com/

For Spring MVC Basics:

https://spring.io/guides/gs/serving-web-content/

https://www.youtube.com/playlist?list=PLBgMUB7xGcO31B2gBmy1igpZn6LK78-CJ

ThymeLeaf Basics:

http://www.thymeleaf.org/doc/articles/standarddialect5minutes.html

Spring MVC + AngularJS:

https://www.youtube.com/playlist?list=PL4gCdGOq-cxJrbRMWjrIvGhYqQO1tvYyX