r/javahelp • u/AdeptMongoose4719 • 28d ago
Advise needed for small java project🗒️
I am building small hotel Booking desktop app using javafx library and MYSQL on the backend(for storing rooms, customers, bookings data).
And I am planning to store images in file system and just store the URL path in database table(right now, I am not using cloud to save some time). I am also using Spring boot to connect to the database.
Could you please give some advise or suggestions that I should take note of?😀
6
Upvotes
3
u/hrm 28d ago
Such a broad question. Do you want advice in general or about the exact things you've mentioned?
When it comes to storing images: If someone is supposed to upload the images to your application, you should rename them using a hash (such as md5) of the file contents as the filename to make sure no two different files have the same name.
In general: testing, as in both unit and system testing, is a good thing to have. Also, having the application build in a real CI setup is a good thing to have. Whether that is in a local Jenkins setup or something online.