Git Product home page Git Product logo

springbootmvc's Introduction

This is very outdated - Expect issues if you try to run this

SpringBootMVC

Project skeleton for Software Project class in the University of Iceland.

How do I get this ?

Your IDE (IntelliJ, Eclipse, Spring Tool Suit) should be able to clone a project from Github. It should be easy to find information regarding how to do that for your chosen IDE. It's also possible to download the project as a .zip here.

How do I run this ?

This project is setup using Maven as a dependency manager, so if your IDE does not manage that, or you don't have it installed you can look here for further information. When all the dependencies are downloaded, you can run the project by running the main() method in the class Application and then enter localhost:8080 into the address bar of your favorite web browser.

What is going on ?

Look at the code and find the comments I wrote. I tried explaining what was happening in such a way that it should hopefully be easy to understand. I recommend starting by looking at the HomeController.

What did you use to make this ?

I used IntelliJ Ultimate with Maven to setup this project. Students and Teachers get the Ultimate edition for free, apply here.

Database

This project runs an internal database while it is running. If the project is restarted, then all data will be reset, i.e. no data will persist between restarts. If you look at the application.properties file, you can see how you can direct the project to use your own persistent database. The example shown is aimed at Postgres.

What is this application showing ?

This application is a small demonstration of using Spring Boot to handle the full stack for the webapp. It handles the frontend using Jasper for jsp pages, which allows for dynamic pages. It handles the backend with MVC pattern and easy to use annotations, and interfaces to a repository of our choice, in this instance, an in memory database. When the application is running, you can go to http://localhost:8080/postit for a demonstration for this tech stack.

It's a simple postit application where an user writes a name and a note and posts it to a list. All users posts will be visible with name and note.

It's also possible to see notes from certain users by going to the url http://localhost:8080/postit/username where username is the name of the user you want to see the postit notes from.

Where can I find help ?

In case of any questions, please refer to the "Spring Boot Intro" slides in the HBV501G Verkefni folder on Ugla, or contact your tutor.

Credits

This skeleton project was created by Daníel Páll Jóhannsson while tutoring the HBV501G course in Fall 2015 and 2018.

springbootmvc's People

Contributors

danielpall avatar mbook avatar

Forkers

mbook

springbootmvc's Issues

Postgres driver outdated

In the pom.xml file the outddated 9.1 PostgreSQL driver is given and will not compile if given a database.
Updating to a 9.2+ PostgreSQL driver fixes this issue.
Maven will not update 9.1 automatically.
Tested only on Intellij.
Source

OLD
<dependency> <groupId>postgresql</groupId> <artifactId>postgresql</artifactId> <version>9.1-901-1.jdbc4</version> </dependency>

NEW
<dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>42.2.5</version> </dependency>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.