r/SpringBoot • • Dec 30 '24

Full Stack Web Application - Spring, Angular and MySQL

Hello guys,

Hope your are all good. I'm posting on reddit because i'm developing for a while a Full Stack Application, using Spring, Angular and MySQL.

The goal of this application, is to manage all the eletronic equipments of a company and track each equipment (history).

So, i'm also seeking for a job as a dev and i thought this could be a good idea to rich my portfolio experience, since i have none.

So the main goal of the application is:

- User

- Add User

- We can create a user assigning him to a department, location or neither

- Edit User

- Delete User

- View Equipments

- Assign user to an equipment or multiple equipments

- Equiment

- Add Equipment

- We can create a equipmentssigning him to a department, location or neither

- Edit Equipment

- Delete Equipment

- View User owner

- Assign an equipment to an user

This are the main features at the moment, of this application. Later i will do improvements such as:

- Add Spring Security (Implementation of JWT Authentication and Login)

- Add a dashboard for admin, shoqwing cards with stats or graphs (Equipments p/department, Total of Users, Users p/department, Equipment p/status, etc...)

- Implement a notification system, to alert the admin the equipments that are on use or returned from the warranty.

Please, i would love some feedback from you, and i don't mind if my code it's not the best but the logic is there. If u have any thoughts ply don't mind to ask.

All i need is your opinions, improvements, or something i might be doing wrong.

I'm excited to hear from you guys !

Here goes my git hub repo: https://github.com/programtiago/management-app

Wish you the best,

Tiago

31 Upvotes

40 comments sorted by

View all comments

Show parent comments

2

u/WaferIndependent7601 Dec 31 '24

I was following the test pyramid for a long time. I the read a Reddit post where someone said that he’s not writing many unit tests any more. At first it was like „ok that’s total bs what he says“. After thinking about what tests fail when I realized: unit tests for code coverage are bullshit. Only write unit tests for stuff that calculates some things. Having a test that verifies that service a is called makes not much sense. Write more integration tests and you can refactor way better and faster.

The pyramid is from a time where integration tests were hard to write. If you have a monolith that has no api and you can only write unit tests or frontend tests: you need unit tests. But testing the api is normally enough and good tests there will help you way more.

1

u/[deleted] Jan 01 '25 edited Apr 17 '26

Redact cleaned up all of my comments. Bulk deletion and editing is a feature supported to make sure that AI scrapers can't access my data for training.

consider sugar ten enter subtract governor bear pie detail label

1

u/WaferIndependent7601 Jan 01 '25

If you cannot test it with an integration test, how should it ever happen? There are things like „catch an exception that could occur but will never occur“ like when you have to put null in but you’ll check before that it cannot be null. Is this worth testing?

1

u/[deleted] Jan 01 '25 edited Apr 17 '26

Data brokers and AI scrapers were using my info. Not anymore. Redact let me bulk delete posts across Reddit, Twitter, Discord and Instagram while handling broker opt outs too.

slap liquid fuel waiting file ripe bike society mighty plough