There's this beautiful scene in the movie 'Margin Call' that I liked about engineering and building things. https://www.youtube.com/watch?v=TNX7u_8KL7g
Yes, I have also been in shitty situations working with idiots. But the saving grace is, at the end of it all, you have built something that hopefully helps people. In your case, you clearly did and you should be proud of that.