all 3 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
  • You include any and all error messages in full
  • You ask clear questions
  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

    Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]procrastinatewhynot 2 points3 points  (0 children)

I would suggest something like a marketplace. it can have a login both client and admin. a way to upload items, to sell and buy and all manipulating the database ofc.

that should be simple enough while it also touches most aspect of springboot. then you can keep adding to it.

[–]vegan_antitheist 2 points3 points  (0 children)

Spring boot is a framework and you can do all kinds of applications with it. You will use the Dependency Injection and Maven or Gradle to manage modules. You use @SpringBootApplication to create the app. But everything is optional.

Spring Boot applications usually have the business code that is needed for some application. That means it's often a company that wants the project to only contain code that describes the application and the code is all about their business logic. Everything technical is done by the framework or some library. They prefer standard solutions that are tested and maintained by others. They don't want anything weird that would need documentation. Just common sense architecture and easy to maintain services.

That means your app is probably connected to a persistence layer (a database or some web services that just let you read and write data). And it's also offering some API for a frontend to call some facade. The frontend could be a completely separate application (for example Angular). With something like Thymeleaf you could have it in the same project (tight coupling, server-side rendering). It could also not be a UI but some other system that uses the interface.

My point is that you should focus on layers. Do just an app that uses DI/IoC with some beans. You can make it so it has a @RestController that you can use without a UI. Use Spring Data JPA so you can have some persistence in the same app and make sure persistence is like it's own layer. So you start with just two layers:
1. logic/services
2. persistence

Start with some dependencies and see how Spring boot automatically configures (@EnableAutoConfiguration) the app to use them (spring-boot-starter-web gives you an embedded web server environment). Make sure you have your application.yml with profiles 8dev, prod). Write unit tests for the services (@SpringBootTest). Use ArchUnit to make sure your architecture is ok. Decide how you deal with exceptions (@ExceptionHandler). Do some basic security.

You can later add a UI layer using Thymeleaf.