r/learnjava • • Jan 02 '22

Any Java/Spring boot project ideas that isn't simple CRUD?

I'm really not interested in doing the basic CRUD project. So, you guys have any project ideas that's different?

43 Upvotes

20 comments sorted by

22

u/Sputtrosa Jan 02 '22

Combine scheduled web scraping with a way to present the data. It's a CRUD application, but with more layers. Lets you practice data aggregation and transformation.

Find a few different review sites that deals with something you're interested in, and compare the result with the current price, to see what gives you most bang for your buck.

Or check weather over time and present the data. Connect it to a raspberry pi with a water pump to have it water plants when there hasn't been rain for a couple of days.

3

u/Reflection-Jealous Jan 02 '22

Thank you so much mate. Will look into these.

1

u/[deleted] Jan 22 '22

[removed] — view removed comment

1

u/Sputtrosa Jan 22 '22

Yes. That's what you have to do if they don't have a good API. There are ways to mitigate it, by defining HTML elements by classes and ID instead of type. I've found that a lot of developers don't want to mess with those (to not cause CSS issues?), but it's unstable. Best thing you can do is make sure you're notified when something breaks.

12

u/HecknChonker Jan 02 '22

A web store might be a good project. You need to manage users, inventory, orders, and security. Lots of interesting use cases like what if there's one item left and two people order it at the same time?

2

u/Easy_Garage_137 Jan 02 '22

what if there's one item left and two people order it at the same time

Does it exist best practices for that case?

4

u/HecknChonker Jan 02 '22

As with most things in programming there can be many ways to solve it.

You can lock inventory once someone adds an item to their cart, and give them a time limit to purchase before you lose that lock. You would need to design a system that keeps track of who currently has locks on each item. Systems that sell tickets for concerts or festivals often use this approach.

Another option is to process only one order at a time. If two come in close together one will reach the server first, and that order would get the item and the second order would fail.

The core piece of this is the system that manages the inventory database. You want to design it in a way that only 1 order can actually modify the inventory for an item at a time. You want these changes to be atomic, which means either the order is placed and the inventory count is modified, or the order fails and the inventory count stays the same. It would be problematic if the order did not go through and the count was changed, or if the order did go through and the count was not changed.

2

u/humoroushaxor Jan 02 '22

What skills are you trying to hone?

Board games like checkers, battleship, or chess could be good.

2

u/Reflection-Jealous Jan 02 '22

I'm trying to get a backend developer job, but I'm not getting excited for basic CRUD projects. That's the reason for this post

Thank you for your ideas but I'm not into games.

18

u/andsfff Jan 02 '22

want to to backend but don't like CRUD? Hate it break it to you but many applications are CRUD

4

u/_sathya_narayanan_ Jan 02 '22

When I was learning I decided to create an existing web app like an Ecommerce site and a blogging site with all functionalities. It really helped me out

4

u/gspatace Jan 02 '22

Maybe not really what you want to hear, but just try and automate/solve stuff in your life. For instance, I played WoW a few years ago, and they are offering some public APIs to retrieve some (auction house) data. I made several apps for some scrapping, aggregation, push norifications on an android app, etc. Learned a lot, and also was helpful for my game. Other stuff I did was setting up a light sensor to an arduino/raspberry pi, and have it automatically turn on my Philips Hue.

3

u/Soxcks13 Jan 02 '22

Spring Integration is really powerful, if you’re looking to be a backend developer. Try pulling off a rabbit/Kafka queue/topic or something. Have a look at the Adapters and you can come up with some project ideas.

1

u/[deleted] Jan 22 '22

[removed] — view removed comment

1

u/Soxcks13 Jan 22 '22

Spring Integration follows Enterprise Integration Patterns (EIP), which is about channeling data between different endpoints. Spring Integration is more about connecting an inbound data source to your applications business logic. It excels at dealing with live data, like streams, events, logs, emails, etc. This is why Spring has built in adapters for RabbitMQ and Kafka, for example.

Spring Batch I have not widely used, but its use case is different.

3

u/stao123 Jan 02 '22

Build an app with a GraphQL interface. Its a nice alternative to REST (CRUD)

3

u/Jtonna Jan 03 '22

If you're interested in crypto and interfacing with other API's I've just started working my way through CoinBase's developer API using Postman & I'm documenting it in notion.

Coinbase doesn't currently have a Java API implementation so I'm likely going to build one from scratch. There's currently one other Java Coinbase project but it's not being maintained anymore & the developer states they are working on a new one.

I've taken an interest in Project Reactor as of lately and am looking to use that

1

u/philfrei Jan 03 '22 edited Jan 03 '22

Look at sample projects and examples on NoSQL sites, distributed database sites.

I have to say, I am curious what you mean by "basic CRUD." Are you trying to get away from using databases for persistent backend data? Or is it okay to have this (hard to avoid!) but just wanting a more interesting front-end challenge?

1

u/[deleted] Jan 04 '22

Make a bot that analyses Reddit posts and detects sarcasm. That could be useful.